Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revisionBoth sides next revision | ||
selfgol [2007-06-07 12:02] – created nik | selfgol [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: | ||
- | < | + | < |
@s=( | @s=( | ||
q[printf pop@s, @s], | q[printf pop@s, @s], | ||
Line 49: | Line 49: | ||
---- | ---- | ||
- | loosely related,.. some perl quines from -> http:// | ||
+ | |||
+ | ==== some perl quines ==== | ||
+ | |||
+ | loosely related,.. from -> http:// | ||
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 < |
< | < | ||
Line 67: | Line 70: | ||
< | < | ||
$_=q(print" | $_=q(print" | ||
- | paper on writing quines (in C) http:// | ||
</ | </ | ||
+ | |||
+ | paper on writing [[quines]] (in C) http:// | ||
---- | ---- | ||
Libarynth > Libarynth Web > ComputerScience > GeneticProgramming > SelfGOL r5 - 30 Sep 2006 - 16:29 | Libarynth > Libarynth Web > ComputerScience > GeneticProgramming > SelfGOL r5 - 30 Sep 2006 - 16:29 | ||
---- | ---- |