Chapter 7

Finishing Your First Game

In This Chapter

arrow Handling the end of a hand and the end of a game

arrow Developing a more sophisticated player AI

arrow 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!

ontheweb_modern.eps You can download sample files for this chapter at

www.dummies.com/go/androidgameprogramming

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

check.png Progress to the next hand

check.png Determine who won and who lost

Ending a hand

The hand should end when ...

Get Android Game Programming For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.