Game Development Reference
In-Depth Information
FIGURe 6.31
a simple deterministic
harvester game. red
wins all the time.
NOTE You might
recognize the pattern
in the chart from
the section “Long-
term investments vs.
short-term gains” in
chapter 4. it's the same
phenomenon.
TAble 6.3
comparison of the
different strategies
in the deterministic
harvesting Game
STRATEGy (Number of
Additional Harvesters Built)
TuRNS REQuIRED
TO COMPlETE GOAl
0
300
1
181
2
146
3
133
4
125
5
121
6
120
7
119
8
120
9
120
10
121
11
121
12
122
Randomness can be used to break this pattern. If the same game were played but
instead of harvesting 0.1 energy every turn, a harvester would increase the chance
that energy is harvested by 10%, the results completely change. Figure 6.32 shows
a sample run of the harvesting game set up in this way. From simulating and run-
ning this game 1,000 times, we determined that now blue has roughly a 15%
chance to win.
 
 
Search WWH ::




Custom Search