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