Today I implemented some more code surrounding a game over event. Originally, I would simply delete the serialized game object from the database, which would be confusing for players. Instead, I am now setting a game-over flag and leaving the game in the database. This may be useful in the future to analyze human matches when I begin to work on the AI portion again.
The task was especially hairy due to some issues over how AI players affect the game differently than a Human player does. I had to refactor the code a good deal to incorporate AI players so there were still snags here and there.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment