Finishing Your First Game
In This Chapter
Handling the end of a hand and the end of a game
Developing a more sophisticated player AI
Using your own launcher icon
After you have every core element that enables you to represent the game state and make plays from both hands, your only remaining tasks are to handle the ends of hands and games — and to make a few improvements. You’re almost finished with your first game!
Ending Hands and Games
You’ve got all the logic for making plays within a game, but hands and games can’t go on forever, right? You need to make sure the game can recognize states when the hand or game should come to an end so that scores can be tallied so the game can either
Progress to the next hand
Determine who won and who lost
Ending a hand
The hand should end when ...