keithgw / wingspan

A Wingspan AI that uses reinforcement learning to learn to play the wingspan board game.
2 stars 1 forks source link

refill tray at end of player turn #35

Closed keithgw closed 7 months ago

keithgw commented 7 months ago

At the end of a player's turn, the tray should refill (not flush).

Tray will need to be able to check if its refillable, and refill from the deck if so.

As the game state is currently designed, neither game state nor player have an awareness of the tray. Either the tray needs to be passed to end_player_turn, or it is starting to look like GameState should keep track of all players, and game components.

keithgw commented 7 months ago

Will add tray as an argument to game_state.end_player_turn(). If at a later date, it makes sense to move everything into the game state, then that can be addressed then.