PROJECT PREVIEW: THE DICE POKER GAME


In this chapter's project, you apply your knowledge of loops to developing the Dice Poker game. In addition, you get experience working with and controlling graphics by learning how to use the ImageList and PictureBox controls.

Figures 7.1 through 7.6 show examples from the Dice Poker game, demonstrating its functionality and overall execution flow.

image from book
Figure 7.1: The Dice Poker game begins by giving the player $20 in an account.

image from book
Figure 7.2: Players can elect to hold onto specific dice before rolling the dice a second time.

image from book
Figure 7.3: Two dollars are deducted from the player's account for each losing hand.

image from book
Figure 7.4: Winning hands are rewarded with additional credits to the player's account.

image from book
Figure 7.5: Winning hands include 3, 4, and 5 of a kind, full house, and high and low straights.

image from book
Figure 7.6: The game automatically ends if the player's account runs out of money.

By the time you have completed this game, you'll have a good understanding of how to work with loops. You'll also have a greater sense of using graphics controls in your applications.




Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
ISBN: 735615381
EAN: N/A
Year: 2005
Pages: 131

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net