
Math and Logic in Games
40
have another tool created that searched for patterns in the text les.
As long as there are no glaring errors or repeated sequences found,
it is unlikely players will notice anything wrong with the game. If
problems are detected, the programmers may want to try a dierent
algorithm.
Using Dice for Randomizing
In board games, randomization can take several forms. Players might
need to use a spinner to generate a random number or the draw of a
card from a deck can make each turn dierent. e way most com-
monly associated with board games is to roll a die (or two or more)
to generate random numbers, which are then ...