source: liacs/ai/robocom/figure-flag-v2.rob.tex@ 255

Last change on this file since 255 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

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