Skip to main content
Tweeted twitter.com/StackCodeGolf/status/968976200424181765
added 149 characters in body
Source Link
Dom Hastings
  • 24.7k
  • 4
  • 58
  • 94

A half cardinal cyclic quine is a cyclic quine with two states, one perpendicular to the other.

Rules

You can decide which rotation you want to implement, clockwise or counter-clockwise.

Once rotated, any gaps in your code should be replaced with spaces to preserve the positioning.

Your program must satisfy the community definition of a quine.

This is so the shortest program in each language wins. Your first program is used for your byte count.

Standard loopholes are forbidden.

Examples

If your program is:

$_='print';eval 

Then the next iteration must be either:

$ _ = ' p r i n t ' ; e v a l 

or

l a v e ; ' t n i r p ' = _ $ 

which must output the original program:

$_='print';eval 

If your program is:

;$_='; ;$_='; print 

Then the next iteration must be either:

;; ''t ==n __i $$r ;;p 

or:

p;; r$$ i__ n== t'' ;; 

which must output the original program:

;$_='; ;$_='; print 

A half cardinal cyclic quine is a cyclic quine with two states, one perpendicular to the other.

Rules

You can decide which rotation you want to implement, clockwise or counter-clockwise.

Your program must satisfy the community definition of a quine.

This is so the shortest program in each language wins.

Standard loopholes are forbidden.

Examples

If your program is:

$_='print';eval 

Then the next iteration must be either:

$ _ = ' p r i n t ' ; e v a l 

or

l a v e ; ' t n i r p ' = _ $ 

which must output the original program:

$_='print';eval 

If your program is:

;$_='; ;$_='; print 

Then the next iteration must be either:

;; ''t ==n __i $$r ;;p 

or:

p;; r$$ i__ n== t'' ;; 

which must output the original program:

;$_='; ;$_='; print 

A half cardinal cyclic quine is a cyclic quine with two states, one perpendicular to the other.

Rules

You can decide which rotation you want to implement, clockwise or counter-clockwise.

Once rotated, any gaps in your code should be replaced with spaces to preserve the positioning.

Your program must satisfy the community definition of a quine.

This is so the shortest program in each language wins. Your first program is used for your byte count.

Standard loopholes are forbidden.

Examples

If your program is:

$_='print';eval 

Then the next iteration must be either:

$ _ = ' p r i n t ' ; e v a l 

or

l a v e ; ' t n i r p ' = _ $ 

which must output the original program:

$_='print';eval 

If your program is:

;$_='; ;$_='; print 

Then the next iteration must be either:

;; ''t ==n __i $$r ;;p 

or:

p;; r$$ i__ n== t'' ;; 

which must output the original program:

;$_='; ;$_='; print 
Source Link
Dom Hastings
  • 24.7k
  • 4
  • 58
  • 94

Build a half cardinal cyclic quine

A half cardinal cyclic quine is a cyclic quine with two states, one perpendicular to the other.

Rules

You can decide which rotation you want to implement, clockwise or counter-clockwise.

Your program must satisfy the community definition of a quine.

This is so the shortest program in each language wins.

Standard loopholes are forbidden.

Examples

If your program is:

$_='print';eval 

Then the next iteration must be either:

$ _ = ' p r i n t ' ; e v a l 

or

l a v e ; ' t n i r p ' = _ $ 

which must output the original program:

$_='print';eval 

If your program is:

;$_='; ;$_='; print 

Then the next iteration must be either:

;; ''t ==n __i $$r ;;p 

or:

p;; r$$ i__ n== t'' ;; 

which must output the original program:

;$_='; ;$_='; print