% Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite \noindent \mbox{}\texttt{01:} ;\ RoboCom\ program \\ \mbox{}\texttt{02:} \\ \mbox{}\texttt{03:} ;\ Instead\ of\ having\ to\ change\ all\ the\ values\ below\ with\ every\ new\ program, \\ \mbox{}\texttt{04:} ;\ it's\ suggested\ that\ you\ adjust\ the\ template\ header\ to\ your\ needs\ once \\ \mbox{}\texttt{05:} ;\ in\ the\ Prefs-$>$Editor\ dialog.\ You\ can\ also\ remove\ these\ comments. \\ \mbox{}\texttt{06:} ;\ See\ documentation\ for\ the\ meaning\ of\ these\ and\ more\ header\ fields. \\ \mbox{}\texttt{07:} \\ \mbox{}\texttt{08:} Published\ \ Name\ \ \ \ \ \ \ \ figure-flag-v2\ \ \ \ \ \ \ \ \ \ \ ;\ Name\ of\ this\ program \\ \mbox{}\texttt{09:} Published\ \ Author\ \ \ \ \ \ Rick\ van\ der\ Zwet\ \ \ \ \ \ \ \ ;\ Name\ of\ author \\ \mbox{}\texttt{10:} Published\ \ EMail\ \ \ \ \ \ \ hvdzwet@liacs.nl\ \ \ \ \ \ \ \ \ ;\ Author's\ e-mail\ address \\ \mbox{}\texttt{11:} Published\ \ Country\ \ \ \ \ The\ Netherlands\ \ \ \ \ \ \ \ \ \ ;\ Author's\ home\ country \\ \mbox{}\texttt{12:} Published\ \ Comment\ \ \ \ \ Part\ AI\ Course\ @\ LIACS\ \ \ ;\ A\ comment\ on\ this\ prog \\ \mbox{}\texttt{13:} Secret\ \ \ \ \ Password\ \ \ \ YOUR$\_$PASSWORD$\_$HERE\ \ \ \ \ \ \ ;\ Password\ for\ competitons \\ \mbox{}\texttt{14:} \\ \mbox{}\texttt{15:} Published\ \ OpenSource\ \ yes\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ;\ This\ prog\ is\ open\ source \\ \mbox{}\texttt{16:} Published\ \ Language\ \ \ \ RC300\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ;\ Written\ in\ RC300\ language \\ \mbox{}\texttt{17:} Published\ \ OptionSet\ \ \ Classic\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ;\ Recommended\ OptionSet \\ \mbox{}\texttt{18:} \\ \mbox{}\texttt{19:} Bank\ Flag \\ \mbox{}\texttt{20:} \ \ \ @Start \\ \mbox{}\texttt{21:} \ \ \ ;Indentify\ field \\ \mbox{}\texttt{22:} \ \ \ Scan\ \#1 \\ \mbox{}\texttt{23:} \ \ \ Comp\ \#1,0 \\ \mbox{}\texttt{24:} \ \ \ Jump\ @FieldBusy \\ \mbox{}\texttt{25:} \ \ \ \\ \mbox{}\texttt{26:} \ \ \ ;New\ robot \\ \mbox{}\texttt{27:} \ \ \ Create\ 2,1,0 \\ \mbox{}\texttt{28:} \ \ \ Scan\ \#1 \\ \mbox{}\texttt{29:} \ \ \ Comp\ \#1,2 \\ \mbox{}\texttt{30:} \ \ \ Jump\ @EnemyBot \\ \mbox{}\texttt{31:} \ \ \ Trans\ 1,1 \\ \mbox{}\texttt{32:} \ \ \ Set\ \textit{\%active,\#active} \\ \mbox{}\texttt{33:} \ \ \ Jump\ @ScanForDieMode \\ \mbox{}\texttt{34:} \ \ \ \\ \mbox{}\texttt{35:} \ \ \ ;Indentify\ enemy\ or\ friendly \\ \mbox{}\texttt{36:} \ \ \ @FieldBusy \\ \mbox{}\texttt{37:} \ \ \ Comp\ \#1,2 \\ \mbox{}\texttt{38:} \ \ \ Jump\ @EnemyBot \\ \mbox{}\texttt{39:} \ \ \ \\ \mbox{}\texttt{40:} \ \ \ ;We\ completed\ the\ tail,\ let's\ check\ whether \\ \mbox{}\texttt{41:} \ \ \ ;we\ are\ next\ to\ some\ other\ friend \\ \mbox{}\texttt{42:} \ \ \ \ \ \ \ \ \\ \mbox{}\texttt{43:} \ \ \ @FriendlyBot \\ \mbox{}\texttt{44:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{45:} \ \ \ Scan\ \#1 \\ \mbox{}\texttt{46:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{47:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{48:} \ \ \ Scan\ \#2 \\ \mbox{}\texttt{49:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{50:} \ \ \ \\ \mbox{}\texttt{51:} \ \ \ Comp\ \#1,0 \\ \mbox{}\texttt{52:} \ \ \ Jump\ @ScanForDieMode \\ \mbox{}\texttt{53:} \ \ \ Comp\ \#2,0 \\ \mbox{}\texttt{54:} \ \ \ Jump\ @ScanForDieMode \\ \mbox{}\texttt{55:} \ \ \ Comp\ \#active,1 \\ \mbox{}\texttt{56:} \ \ \ Jump\ @EnemyBot \\ \mbox{}\texttt{57:} \ \ \ Set\ \#active,2 \\ \mbox{}\texttt{58:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{59:} \ \ \ Jump\ @Start \\ \mbox{}\texttt{60:} \ \ \ \ \ \ \\ \mbox{}\texttt{61:} \ \ \ ;Start\ looking\ whether\ we\ need\ to\ kill\ ourself \\ \mbox{}\texttt{62:} \ \ \ @ScanForDieMode \\ \mbox{}\texttt{63:} \ \ \ Comp\ \textit{\%active,3} \\ \mbox{}\texttt{64:} \ \ \ Jump\ @ScanForDieMode \\ \mbox{}\texttt{65:} \ \ \ Set\ \#active,3 \\ \mbox{}\texttt{66:} \ \ \ ;Delay\ to\ allow\ 'message'\ to\ pass\ trough \\ \mbox{}\texttt{67:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{68:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{69:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{70:} \ \ \ Die \\ \mbox{}\texttt{71:} \ \ \ \\ \mbox{}\texttt{72:} \ \ \ ;If\ enemy\ bot,\ start\ looking\ which\ direction\ we\ are\ in \\ \mbox{}\texttt{73:} \ \ \ @EnemyBot \\ \mbox{}\texttt{74:} \ \ \ Set\ \#active,3\ ;\ enable\ destruction\ of\ tail \\ \mbox{}\texttt{75:} \ \ \ ;Delay\ to\ allow\ 'message'\ to\ pass\ trough \\ \mbox{}\texttt{76:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{77:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{78:} \ \ \ Turn\ 0 \\ \mbox{}\texttt{79:} \ \ \ Set\ \#active,1