File: gameboard

package info (click to toggle)
monopd 0.10.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,076 kB
  • sloc: cpp: 6,234; sh: 1,306; makefile: 35
file content (435 lines) | stat: -rw-r--r-- 5,798 bytes parent folder | download | duplicates (5)
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
This document described the configuration syntax of monopd game configuration
files. See the actual configuration files within games/ to see how
this syntax is applied.

Configuration Groups
====================

<string>

Board configuration group. Possible values are: General, Board, CardGroups,
Cards, EstateGroups and Estates.

General
-------

The <General> group contains properties specific to the gameboard or all
elements on it. Possible key/value pairs are:

name=string

The name of the game configuration. "Atlantic", for example.

description=string

A short description of the game. "The classic Monopoly game", for example.

Board
-----

The <Board> group contains properties specific to the gameboard or all
elements on it. Possible key/value pairs are:

go=int

Defines which estate (0 being the first to be defined, 1 the next, and so
on) is the estate where players should start.

bgcolor=#rrggbb

Defines a background color for the board and is the default for all estates.

CardGroups
----------

The <CardGroups> group has no specific properties of its own, but it has
group elements/members (sets of cards) with properties (in the regular
key/value pairs).

[string]

Group element. String defines the name of the element. Possible key/value
pairs for cardgroups are:

color=#rrggbb
bgcolor=#rrggbb

Define a (text) color and background color for these cards. Different card
groups on real gameboards usually have different colors as well.

Cards
-----

The <Cards> group has no specific properties of its own, but it has group
elements (the cards) with properties (in the regular key/value pairs).

[string]

Group element. String defines the name or caption of the game card. Valid
key/value pairs are:

group=string

Defines to which group this card belongs. String must be identical to the
name of one of the cardgroups previously defined. Monopd will ignore cards
without a matching group.

nextutil=0|1

TODO...

tojail=0|1

TODO...

advanceto=int

Defines an estate a token should advance to. The integer defines the n-th
estate defined later, 0-indexed.

advance=int

Defines a number of fields to advance. Can be negative, in which case a
token should be taken back a number of fields.

pay=int

Defines an amount which should be paid upon getting this card. Can be
negative, in which case an amount of money is given to the player.

###################################
TODO: write docs for remaining part
###################################

nextrr=1

jailcard=1

payhouse=25
payhotel=100

payeach=50

tojail=1

payeach=-50

payhouse=40
payhotel=115

<EstateGroups>

[Dark Purple]
color=#6a346a
houseprice=50

[Light Blue]
color=#9cceff
houseprice=50

[Purple]
color=#9c0062
houseprice=100

[Orange]
color=#ff9900
houseprice=100

[Red]
color=#ff0000
houseprice=150

[Yellow]
color=#ffff39
houseprice=150

[Green]
color=#009900
houseprice=200

[Blue]
color=#0000ff
houseprice=200

[Railroads]
price=200
rentmath=12.5*(2^x)
rentvar=ownedbyplayer

[Utilities]
price=150

<Estates>

[Go]

[Mediterranean Avenue]
group=Dark Purple
price=60
rent0=2
rent1=10
rent2=30
rent3=90
rent4=160
rent5=250

[Community Chest]
takecard=Community Chest

[Baltic Avenue]
group=Dark Purple
price=60
rent0=4
rent1=20
rent2=60
rent3=180
rent4=320
rent5=450

[Income Tax]
tax=200
taxpercentage=10

[Reading Railroad]
group=Railroads

[Oriental Avenue]
group=Light Blue
price=100
rent0=6
rent1=30
rent2=90
rent3=270
rent4=400
rent5=550

[Chance]
takecard=Chance

[Vermont Avenue]
group=Light Blue
price=100
rent0=6
rent1=30
rent2=90
rent3=270
rent4=400
rent5=550

[Connecticut Avenue]
group=Light Blue
price=120
rent0=8
rent1=40
rent2=100
rent3=300
rent4=450
rent5=600

[In Jail / Just Visiting]
jail=1

[St. Charles Place]
group=Purple
price=140
rent0=10
rent1=50
rent2=150
rent3=450
rent4=625
rent5=750

[Electric Company]
group=Utilities

[States Avenue]
group=Purple
price=140
rent0=10
rent1=50
rent2=150
rent3=450
rent4=625
rent5=750

[Virginia Avenue]
group=Purple
price=160
rent0=12
rent1=60
rent2=180
rent3=500
rent4=700
rent5=900

[Pennsylvania Railroad]
group=Railroads

[St. James Place]
group=Orange
price=180
rent0=14
rent1=70
rent2=200
rent3=550
rent4=750
rent5=950

[Community Chest]
takecard=Community Chest

[Tennessee Avenue]
group=Orange
price=180
rent0=14
rent1=70
rent2=200
rent3=550
rent4=750
rent5=950

[New York Avenue]
group=Orange
price=200
rent0=18
rent1=80
rent2=220
rent3=600
rent4=800
rent5=1000

[Free Parking]

[Kentucky Avenue]
group=Red
price=220
rent0=18
rent1=90
rent2=250
rent3=700
rent4=875
rent5=1050

[Chance]
takecard=Chance

[Indiana Avenue]
group=Red
price=220
rent0=18
rent1=90
rent2=250
rent3=700
rent4=875
rent5=1050

[Illinois Avenue]
group=Red
price=240
rent0=20
rent1=100
rent2=300
rent3=750
rent4=925
rent5=1100

[B &amp; O Railroad]
group=Railroads

[Atlantic Avenue]
group=Yellow
price=260
rent0=22
rent1=110
rent2=330
rent3=800
rent4=975
rent5=1150

[Ventnor Avenue]
group=Yellow
price=260
rent0=22
rent1=110
rent2=330
rent3=800
rent4=975
rent5=1150

[Water Works]
group=Utilities

[Marvin Gardens]
group=Yellow
price=280
rent0=22
rent1=120
rent2=360
rent3=850
rent4=1025
rent5=1200

[Go to Jail]
tojail=1

[Pacific Avenue]
group=Green
price=300
rent0=26
rent1=130
rent2=390
rent3=900
rent4=1100
rent5=1275

[North Carolina Avenue]
group=Green
price=300
rent0=26
rent1=130
rent2=390
rent3=900
rent4=1100
rent5=1275

[Community Chest]
takecard=Community Chest

[Pennsylvania Avenue]
group=Green
price=320
rent0=28
rent1=150
rent2=450
rent3=1000
rent4=1200
rent5=1400

[Short Line]
group=Railroads

[Chance]
takecard=Chance

[Park Place]
group=Blue
price=350
rent0=35
rent1=175
rent2=500
rent3=1100
rent4=1300
rent5=1500

[Luxury Tax]
tax=75

[Boardwalk]
group=Blue
price=400
rent0=50
rent1=200
rent2=600
rent3=1400
rent4=1700
rent5=2000