End turn when play can no longer continue because of no-hand [CLI]
jjm3x3 opened this issue · comments
Because of some refactoring of how the game is driven when the only thing causing the turn to end is a lack of cards to play the mechanisms in place don't allow the CLI to progress the game correctly. At the time of writing this what happens is the turn progresses once to the next player and then it checks if the current player's (assuming the previous player) turn is over. This of course is false, but since the previous player is perceived to be the current player we get stuck in an infinite play loop where the turn can't progress. See this line It will progress the turn w/o updating the local activePlayer
in this case is not updated but the while condition is not using that player and instead using the game drivers active_player
which has been updated.