Closed EvgenyPetrovsky closed 6 years ago
Player should stay in game because game defines what player is and what she can do
We need to think in use cases. Someone (person) who has money goes to casino and joins the game table (that also defines roulette style). So this is player. Player faces series of roulette spins' outcomes and applies her strategy to win. Player is playing for fixed time (measured by number of spins) and uses limited amount of money it has. Game stops when time is over or if player runs out of her money. Player plays fair game where winning number doesn't depend on stakes made.
Here is understanding (on resolution date)
solution consists of 3 parts:
Player is a person with balance, experience (of previous games), luck (defines random generation) and game she is involved in. Player is part of game (1.) definitions.
Strategy is a response of player represented in a set of Bets she does based on her balance and existing experience. Player has luck but no has idea on how to use it.
Simulation is framework that generates players and runs series of games. Simulation applies given strategies for series.
Project should consist of modules
strategy should have access to necessary data in a generic way. first think which classes are implemented by what modules. Where Player should be? Where player actions should be implemented?