Friday, July 29, 2011

The "Whose Turn" Bug

The AI players are still refusing to acknowledge their turns.  I haven't yet had a contiguous block of time to do an in-depth debugging session on it, but I have verified a few minor elements of the process.  This is just a note to keep track of what has been attempted and what is to come next.


Hypothesis #1:  The AI characters weren't moving because they had no action points assigned.
Procedure:   Manual trace of source code to identify logic that may be prohibiting the movement functionality.
Test Results:  Action points are not yet being validated by the server, so this is irrelevant.


Hypothesis #2:  The AI characters aren't receiving the notification that it's their turn.
Procedure:  Console output from both client and server whenever the "whose turn" message is sent or received.
Test Results:  All clients, including the AI, are receiving correct values from the server regarding whose turn it is.


Hypothesis #3:  The method for determining whether a player is a human or an AI is faulty.
Procedure:  Trace the isAIPlayer() method to validate its functionality.
Test Results:  I have not had time to do this yet.  It is the very next thing I will attempt.



At the moment, there are no further hypotheses regarding this defect.  I'm always open to suggestions if anyone has any ideas that I haven't thought of yet.

More to come on this issue.

No comments:

Post a Comment