When creating a Game
object with games = Game('Alex', 'heads', 3)
, the parameters should be instances of Player, Coin, and Dice
, not strings.
Also, the play
method in the Game
class runs a loop for 20 turns, but the return statement immediately exits after the first turn. The return should be moved outside the loop to return the final position after 20 turns.