carlofazioli / cardiathena

A project to study strategies in the game of hearts, using distributed computing, AI, and data analytics.
GNU General Public License v3.0
6 stars 1 forks source link

Final state is shuffled when game is concluded #66

Closed carlofazioli closed 4 years ago

carlofazioli commented 4 years ago

The adjudicator (in approx line 187) checks if a round is over and will subsequently reshuffle. Since the end of the game also counts as the end of a round, a shuffle is triggered at the end of the game.

If the game is over, the final state should differ from the previous state in that the final card is played and the points are updated. The deck should not be reshuffled.

Potential fix is something like:

if self.is_round_over() and not self.is_finished(): ...