Closed Akavall closed 6 years ago
I think it is a race condition that results from clicking too quickly, but need to look more into it.
I think I see what is happening: clicking "AI turn" calls "take_turn" function, which grabs the game state from DynamoDB, since simulationist takes some time to process will make new calls to "take_turn", which can override (if completes later) the result of the previous call toll to "take_turn", since at the end function "takes_turn" saves the updated state to DynamoDB.
I don't think this issue resolved. I am still running into this. It only happens at the end of the game. If human player is winning (13 or more points), the game does not stop after AI is shot three or more times, it seems like AI gets another chance.