forked from sam-hu/Big-Red-Risk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboard.ml
213 lines (173 loc) · 3.86 KB
/
board.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
type country = {
country_id: string;
bordering_countries: string list;
}
type card = Circle | Triangle | Square
type player = {
player_id: string;
num_deployed: int;
num_undeployed: int;
cards: card list;
ai: bool;
ratio: float
}
type continent = {
countries: country list;
id: string;
bonus: int;
}
type board = continent list
let p1 = {
player_id = "Player one";
num_deployed = 0;
num_undeployed = 0;
cards = [];
ai = false;
ratio = 0.0
}
let p2 = {
player_id = "Player two";
num_deployed = 0;
num_undeployed = 0;
cards = [];
ai = false;
ratio = 0.0
}
let p3 = {
player_id = "Player three";
num_deployed = 0;
num_undeployed = 0;
cards = [];
ai = false;
ratio = 0.0
}
let p4 = {
player_id = "Player four";
num_deployed = 0;
num_undeployed = 0;
cards = [];
ai = false;
ratio = 0.0
}
let becker = {
country_id = "Becker";
bordering_countries = ["Cook";"Rose"]
}
let rose = {
country_id = "Rose";
bordering_countries = ["Keeton";"Bethe";"Becker"]
}
let keeton = {
country_id = "Keeton";
bordering_countries = ["Rose";"Bethe"]
}
let bethe = {
country_id = "Bethe";
bordering_countries = ["Keeton";"Rose";"Uris"]
}
let cook = {
country_id = "Cook";
bordering_countries = ["Becker";"Morrill"]
}
let morrill = {
country_id = "Morrill";
bordering_countries = ["Uris";"Tjaden";"Cook"]
}
let uris = {
country_id = "Uris";
bordering_countries = ["Bethe";"Morrill";"Olin"; "Sibley"]
}
let tjaden = {
country_id = "Tjaden";
bordering_countries = ["Morrill";"Goldwin";"Sibley"]
}
let olin = {
country_id = "Olin";
bordering_countries = ["Uris";"Cascadilla";"Goldwin"]
}
let goldwin = {
country_id = "Goldwin";
bordering_countries = ["Olin";"Tjaden";"Klarman"]
}
let sibley = {
country_id = "Sibley";
bordering_countries = ["Donlon";"Tjaden";"Klarman";"Uris"]
}
let klarman = {
country_id = "Klarman";
bordering_countries = ["Sibley";"Goldwin";"Dairy Bar"]
}
let donlon = {
country_id = "Donlon";
bordering_countries = ["Townhouses";"RPCC";"Sibley";"Appel"]
}
let townhouses = {
country_id = "Townhouses";
bordering_countries = ["Donlon";"RPCC"]
}
let rpcc = {
country_id = "RPCC";
bordering_countries = ["Townhouses";"Donlon";"Low Rise"]
}
let lowrise = {
country_id = "Low Rise";
bordering_countries = ["RPCC";"Appel"]
}
let appel = {
country_id = "Appel";
bordering_countries = ["Donlon";"Mann";"Low Rise"]
}
let mann = {
country_id = "Mann";
bordering_countries = ["Appel";"Dairy Bar";"Riley"]
}
let riley = {
country_id = "Riley";
bordering_countries = ["Gates";"Dairy Bar";"Mann"]
}
let dairy = {
country_id = "Dairy Bar";
bordering_countries = ["Klarman";"Riley";"Mann"]
}
let gates = {
country_id = "Gates";
bordering_countries = ["Riley";"Schwartz"]
}
let cascadilla = {
country_id = "Cascadilla";
bordering_countries = ["Sheldon";"Olin";"Schwartz"]
}
let sheldon = {
country_id = "Sheldon";
bordering_countries = ["Cascadilla";"Schwartz"]
}
let schwartz = {
country_id = "Schwartz";
bordering_countries = ["Sheldon";"Cascadilla";"Gates"]
}
let west = {
countries = [becker; cook; rose; keeton; bethe];
id = "West Campus";
bonus = 5;
}
let central = {
countries = [uris; tjaden; morrill; sibley; goldwin; klarman; olin];
id = "Central Campus";
bonus = 8;
}
let north = {
countries = [townhouses; donlon; rpcc; lowrise; appel];
id = "North Campus";
bonus = 6;
}
let ag_quad = {
countries = [mann; dairy; riley; gates];
id = "Ag. Quad";
bonus = 4;
}
let collegetown = {
countries = [cascadilla; sheldon; schwartz];
id = "Collegetown";
bonus = 3;
}
let graphboard = [west; north; central; ag_quad; collegetown]