Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
selfgol [2007-06-07 12:02] – created nikselfgol [2007-10-06 19:47] 192.168.1.48
Line 11: Line 11:
  
   selfgol -g [-y=## -x=##] [< gamefile] plays the Game of Life with its own source code or an arbitrary file, with optional height and width restrictions.   selfgol -g [-y=## -x=##] [< gamefile] plays the Game of Life with its own source code or an arbitrary file, with optional height and width restrictions.
-  +
   selfgol -d[=bannertext] displays a rotating banner with the provided text. If no text is provided, it uses the program name as the text.   selfgol -d[=bannertext] displays a rotating banner with the provided text. If no text is provided, it uses the program name as the text.
  
Line 18: Line 18:
 the self-replicating code, used the standard quine code: the self-replicating code, used the standard quine code:
  
-<code>+<code perl>
   @s=(    @s=( 
     q[printf pop@s, @s],      q[printf pop@s, @s], 
Line 49: Line 49:
  
 ---- ----
-loosely related,.. some perl quines from -> http://www.nyx.net/~gthompso/quine.htm 
  
 +
 +==== some perl quines ====
 +
 +loosely related,.. from -> http://www.nyx.net/~gthompso/quine.htm
  
 Author: Tushar Samant Author: Tushar Samant
-Note: This will produce itself, and will do so no matter what you set $a to in the beginning. So if the length of $a is n, and the size of the allowed character set is C, then at least C**n out of C**(n+K) strings are self-reproducing Perl programs.+Note: This will produce itself, and will do so no matter what you set $a to in the beginning. So if the length of $a is n, and the size of the allowed character set is C, then at least <nowiki>C**n out of C**(n+K)</nowiki> strings are self-reproducing Perl programs.
  
 <code> <code>
Line 67: Line 70:
 <code> <code>
 $_=q(print"\$_=q($_);eval;");eval; $_=q(print"\$_=q($_);eval;");eval;
-paper on writing quines (in C) http://www.cs.washington.edu/homes/csk/paper/ 
 </code> </code>
 +
 +paper on writing [[quines]] (in C) http://www.cs.washington.edu/homes/csk/paper/
  
 ---- ----
 Libarynth >  Libarynth Web > ComputerScience > GeneticProgramming > SelfGOL r5 - 30 Sep 2006 - 16:29  Libarynth >  Libarynth Web > ComputerScience > GeneticProgramming > SelfGOL r5 - 30 Sep 2006 - 16:29 
 ---- ----
  • selfgol.txt
  • Last modified: 2020-10-22 15:13
  • by nik