Lets play!
The core of a game is a model of its behaviour. This is usually modelled based on the game’s domain, and therefore divorced for concerns such as HTTP or databases. For example, roulette has the key terms:
It’s then worthwhile thinking about the events that can happen in the game:
This might lead to some states:
Take a look at the roulette model.
Next: Testing random behaviour