Live data from Hacker News

Show HN: Quinesnake – A quine that plays snake over its own source

github.com

11–19 of 19 posts

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#12
post #5

A quine is a computer program which takes no input and produces a copy of its own source code as its only output. The standard terms for these programs in the computability theory and computer science literature are "self-replicating programs", "self-reproducing programs", and "self-copying programs". So it's a self-replicating game of snake? Sounds very much like a worm virus. Very nice project though!

Not exactly. It prints exactly it's own source code as output but it doesn't run it again. You can run a quine output manually as it's by definition the same code that printed it but it lacks the ability to keep executing continuously like a worm virus would require. I guess you could make a worm virus that's also a quine but that would be a whole other problem.

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#15

This is really neat! Unfortunately the color isn't working for me for some reason, which makes locating the initial food quite difficult. Any idea what could cause that?

Oh that sucks, the whole point of programs like these is that they should still be portable. Could you make a GitHub issue (or email me) with your platform, shell, compiler version and curses version?

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#17

This is really neat! Unfortunately the color isn't working for me for some reason, which makes locating the initial food quite difficult. Any idea what could cause that?

Oh that sucks, the whole point of programs like these is that they should still be portable. Could you make a GitHub issue (or email me) with your platform, shell, compiler version and curses version?

Sure thing!

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#18

Are there resources for making a quine that improve the development process or is it exactly as insanely tedious as it looks? Because this looks pretty impressive.

http://www.madore.org/~david/computers/quine.html

Thanks for the reference.

Re: Show HN: Quinesnake – A quine that plays snake over its own source

#19

Are there resources for making a quine that improve the development process or is it exactly as insanely tedious as it looks? Because this looks pretty impressive.

http://www.madore.org/~david/computers/quine.html

Also https://en.m.wikipedia.org/wiki/Kleene's_recursion_theorem
Post reply on HN