Skip to Content
Professional Windows® Phone 7 Game Development: Creating Games using XNA Game Studio 4
book

Professional Windows® Phone 7 Game Development: Creating Games using XNA Game Studio 4

by Chris G. Williams, George W. Clingerman
February 2011
Beginner to intermediate content levelBeginner to intermediate
552 pages
12h 40m
English
Wrox
Content preview from Professional Windows® Phone 7 Game Development: Creating Games using XNA Game Studio 4

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XNA Game Studio 4.0 Programming: Developing for Windows® Phone 7 and Xbox 360®

XNA Game Studio 4.0 Programming: Developing for Windows® Phone 7 and Xbox 360®

Tom Miller, Dean Johnson

Publisher Resources

ISBN: 9780470922446Purchase book