Navigation
Home & news
Random page
All pages
Site search:
Databases
Fortune cookies
Haikus
SID themes
Page collections
Blag
Chip music
Games
Hardware projects
Music downloads
Obfuscated programming
Piano music
Sane programming
Scene productions
SID related pages
Software downloads
Video downloads
Featured pages
Autosokoban
Beagleboard VGA
Binary Art
Brainfuck
Chipophone
Chopin romance
Craft
Fratres
Hardware chiptune
Klämrisk Hero
Lampslide
Making the Chipophone
Phasor
Reverberations
Slaepwerigne
Spellbound
Swan
TTY demystified
Turbulence
Forum
Register
Log in
Latest comments
Feedback
  • Swedish content
  • Personal content
  • Offensive content

Turtle Race implemented in Sendmail

More obfuscated programming

Well, what can I say? Turtle Race was an introductory programming exercise at LTH, and Sendmail is such a bloated mail transport agent that it is possible to write small programs using its dreaded configuration file syntax.

# TURTLE RACE implemented in sendmail, by Linus Akesson, lft@df.lth.se
# If the name of this file is "turtle", type:
# echo "0 0" | /usr/lib/sendmail -bt -Cturtle

DE"___*___"
DF"o/~~~\\o"
DG"o\\___/o"
DH"___O___"
DI"_______"
DJ"******* FINISH ****"
DK"**** START ****"

S0
R0		$>2 f d $K
Rg		$:$>2 b f $K
Rg		$:$>2 f f $K

S1
R$+$G$-		$1 $H $2
R$+$G		$1 $H
R$-$-$*		$:$2 $1 $3
Rb$*		a $1
Rc$*		b $1
Rd$*		c $1
Re$*		d $1
Rf$*		e $1

S2
R$+$K		$>3$1 $E $E
R$-$+		$>3$1 $2

S3
R$*		$:$>1$1 
Ra$-$E$-	$>4 a $1 $F $2
Ra$-$G$-	$>4 a $1 $H $2
R$J		$@g
R$*		$:$>1 $1
Ra$-$-$E	$>4 a $1 $2 $F
Ra$-$-$G	$>4 a $1 $2 $H
R$J		g

S4
Ra$-$F$-	a$1 $G $2
Ra$-$H$-	a$1 $I $2
Ra$+$F		a$1 $G
Ra$+$H		a$1 $I
Ra a $I $I	$J

The original version with the comments in Swedish.

Discuss this page

There are no comments here yet.