Quines!

A quine is a program that, when run, outputs itself. Here’s one you can run in your browser: quine = function () { console.log("quine = %s; quine()", quine) }; quine(). “Whorld” by Zol, using Context Free Art If you are using Chrome or Safari to look at this page, you can get to a Javascript console by going to your menu and choosing Tools > Javascript Console. Read more...

Hunt the Wumpus using Racket

“Hunt the Wumpus” was the first game I ever typed into a computer. Gregory Yob wrote it in the early 1970s, and I found it in The Best of Creative Computing, Volume 1. I copied the code painstakingly into Disk BASIC on an IBM PC XT. And then I played it for hours. Image by tristan_roddis@flickr. If there’s a language today as suited for beginners to learn with as BASIC was then, I believe that language is Racket. Read more...
Previous Page 7 of 7