(hide navigation)
  • Swedish content
Fund my projects
Patreon
Steady
Don't miss
Page thumbnail
Java challenge
Forum
Register
Log in
Latest comments
Syndication
RSS feed
Feedback

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.