Closed Akavall closed 6 years ago
The game should not continue after it is over because we are "deleting" a relevant game state after the game is over. The problem is the game is not deleted, and therefore we get this "feature".
err := dynamo_db_tools.DeleteGameStateFromDynamoDB(uuid)
if err != nil {
log.Println("Was not able to delete GameState in DynamoDB, uuid: %s", err, uuid)
} else {
log.Printf("Deleted GameState associated with %s in DynamoDB table: GameStates", uuid)
}
Looks OK, and in the log it looks like the GameState was deleted, but looking at AWS UI it is still there, and it really is still there.
I have validated the https://github.com/Akavall/GoGamesProject/blob/master/dynamo_db_tools/dynamo_db_tools.go#L76 works, when calling it from outside of zombie dice.
Still looking at it...
Turned out to be a simple bug: I have a pull request to fix it: https://github.com/Akavall/GoGamesProject/pull/61
This happens in special case:
It looks like the game can continue even after the winner has been declared (one player go 13 or more points and thus won the game, there is no tie). I don't think I remember checking for it before, but it certainly can now. This is fine; it is are reasonable feature...
However, playing this game for a while results in this error: