source: liacs/ai/robocom/fighter-defensive-1.rob@ 166

Last change on this file since 166 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: 2.9 KB
RevLine 
[2]1; RoboCom program
2
3Published Name fighter-defensive-1 ; Name of this program
4Published Author Rick van der Zwet ; Name of author
5Published EMail hvdzwet@liacs.nl ; Author's e-mail address
6Published Country The Netherlands ; Author's home country
7Published Comment Part AI Course @ LIACS ; A comment on this prog
8Secret Password YOUR_PASSWORD_HERE ; Password for competitons
9
10Published OpenSource yes ; This prog is open source
11Published Language RC300 ; Written in RC300 language
12Published OptionSet Classic ; Recommended OptionSet
13
14; General overview:
15; * Create really simple shield around mother bot with very simple virus,
16; called protectors
17; * After some cycles call autodestroy on all affected bots, called
18; kamikazes
19; * Start creating 'destroyers' with basicly kill all robots
20;
21
22; Jump bank to safer grounds
23Bank SafeJump
24 Bjump 25,1
25
26; Bank 2-20, empty buffer banks
27Bank Bank2
28Bank Bank3
29Bank Bank4
30Bank Bank5
31Bank Bank6
32Bank Bank7
33Bank Bank8
34Bank Bank9
35Bank Bank10
36Bank Bank11
37Bank Bank12
38Bank Bank13
39Bank Bank14
40Bank Bank15
41Bank Bank16
42Bank Bank17
43Bank Bank18
44Bank Bank19
45Bank Bank20
46Bank Bank21
47Bank Bank22
48Bank Bank23
49Bank Bank24
50
51;Bank 25
52Bank MainParent
53 ;Protectors build
54 @MainParentProtectorStart
55 Scan #10
56 Comp #10,0
57 Jump @MainParentExists
58 Create 1,1,0
59 @MainParentExists
60 Trans 26,1
61 Set %active,1
62 Turn 0
63 Add #1,1
64 Comp #1,50
65 Jump @MainParentProtectorStart
66 Set #1,1
67 Add #2,1
68 Comp #2,4
69 Jump @MainParentProtectorStart
70
71 ;Kamikazes build
72 Set #1,1
73 @MainParentKamikazeStart
74 Trans 27,1
75 Turn 0
76
77 Add #1,1
78 Comp #1,30
79 Jump @MainParentKamikazeStart
80
81 ;Destroyer build
82 @MainParentDestroyerStart
83 Turn 0
84 Scan #1
85 Comp #1,0
86 Jump @MainParentDestroyerStart
87 Create 2,6,0
88 Trans 28,5
89 Trans 29,4
90 Trans 28,1
91 Set %active,1
92 Jump @MainParentDestroyerStart
93
94;Bank 26
95Bank Protectors
96 Trans 1,1
97 Trans 1,2
98 Trans 1,4
99 Turn 1
100
101;Bank27
102Bank Kamikazes
103 Trans 1,1
104 Add #1,1
105 Turn 0
106
107;Bank28
108;SafeJump Destroyers
109Bank DestroyerJump
110Bjump 4,1
111
112;Bank29
113Bank DestroyerMain
114 @DestroyerStart
115 Turn 0
116 Scan #1
117 Comp #1,1
118 Jump @DestroyerFriendly
119 Set #2,%banks
120 @DestroyerBankwhipe
121 Trans 7,#2
122 Sub #2,1
123 Comp #2,0
124 Jump @DestroyerBankWhipe
125 Set %active, 1
126 Jump @DestroyerStart
127 @DestroyerFriendly
128 Comp #1,0
129 Jump @DestroyerStart
130 Create 2,6,0
131 Trans 4,4
132 Trans 5,5
133 Trans 5,1
134 Set %active,1
135 Jump @DestroyerStart
136
137
138;Bank 30-50, empty buffer banks
139Bank Bank30
140Bank Bank31
141Bank Bank32
142Bank Bank33
143Bank Bank34
144Bank Bank35
145Bank Bank36
146Bank Bank37
147Bank Bank38
148Bank Bank39
149Bank Bank40
150Bank Bank41
151Bank Bank42
152Bank Bank43
153Bank Bank44
154Bank Bank45
155Bank Bank46
156Bank Bank47
157Bank Bank48
158Bank Bank49
159Bank Bank50
160
161
Note: See TracBrowser for help on using the repository browser.