ID:179155
 
I'm using Dan's TakeTurns code in my game, and I've got a couple of bugs that seem to be related to the turn generator:

1: I have a new_game verb which will call TakeTurns/BeginTurn() after reseting the game board, etc. The bug is that the player who invoked new_game gets 3 consecutive turns at the beginning of the new game. After that, things return to normal. This problem has never occured when first logging in to the game, only after using the new_game verb.

2: In TakeTurns/EndTurn(), if the game is over (list of game tiles is empty), I do final scoring, output scores to the world and declare a winner. In a 4 player game yesterday, the scores and winner were output twice. There was no message about switching to another player's turn in between, so it doesn't seem possible for EndTurn to have run twice.

I was wondering if anyone else has encountered similar issues with TakeTurns? If not, I'll know to focus only on my code to find the root cause. Thanks.