Chapter 12. Putting It All Together: Poker Dice with Friends

WHAT'S IN THIS CHAPTER?

  • Using everything you've learned thus far and making a game called "Poker Dice with Friends"

It's time to take everything you have learned in the previous chapters and make your second complete game for Windows Phone 7.

Note

The examples provided in the "Putting it All Together" chapters (Chapters 8, 12, and 15) assume knowledge of C#. Without that, the sample projects may be a bit overwhelming and confusing. These chapters are not for beginners, but for experienced developers who are familiar with C# and somewhat familiar with the XNA framework and game-development concepts.

"Poker Dice with Friends" (or Poker Dice, for short) is a turn-based dice game where you and your opponent attempt to make poker hands. This chapter walks you through the development of the game to teach you how to create a turn-based service game for Windows Phone 7.

TAKING CARE OF THE PRELIMINARIES

In "Poker Dice with Friends," you can request games with your friends and then roll the dice to see who comes up with the best Poker Dice hand. The best hand wins the game.

Poker Dice is a lot like regular poker, only played with dice. The closest poker variant to this would be Five Card Draw. Following is a ranking of hands to determine the best hand:

  • Five of a kind, such as 5 5 5 5 5

  • Four of a kind, such as 4 4 4 4

  • Full house, such as 5 5 5 4 4

  • Three of a kind, such as 3 3 3

  • Two pairs, such as 3 3 2 2

  • One pair, such as 2 2

  • High die, such as ...

Get Professional Windows® Phone 7 Game Development: Creating Games using XNA Game Studio 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.