Results 1 to 2 of 2

Thread: dice poker

  1. #1
    saina is offline Member
    Join Date
    Apr 2012
    Rep Power

    Default dice poker

    In this lab you will build the beginnings of a Dice poker game. Dice Poker is played with 5 dice. The object of your game is to get the best poker hand after a deal & 3 draws. The game proceeds as follows:

    A window appears showing the 5 dice, 5 checkboxes and a Draw and New button and a labelbox showing the number of rolls left. Each die has a checkbox below it that controls when it is re-rolled. If the check box is checked, the die will be re-roll when the Deal/Draw button is pressed.

    The game starts and the Deal & New button are displayed.
    The player presses Deal
    All 5 dice are rolled
    Deal button label changes to "Draw" and becomes blue
    The player clicks on all of the checkboxes who's dice that should be re-rolled
    as a checkbox is clicked the spots on its die disappear
    After all dice to be re-rolled are identified, the Draw button is pressed and the blank dice are re-rolled and the # of draws left is decreased and displayed in the labelbox.
    The player can re-roll the dice 3 times. After the third re-roll,
    Draw Changes its label back to "Roll" and is inactive until the new button is pressed
    All check boxes are checked and the dice are set to blank
    When the New button is pressed, the draw button becomes active and a new hand can begin

    what would be a general outline for making this code?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: dice poker

    Quote Originally Posted by saina View Post
    what would be a general outline for making this code?
    Java Code:
    public class DicePoker {
      // your code goes here
    Recommended reading: How to ask questions the smart way

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Trying to make a Poker Dice game..!
    By karibo in forum New To Java
    Replies: 1
    Last Post: 12-08-2011, 05:06 PM
  2. Design logic problem - Poker App
    By santeron in forum New To Java
    Replies: 0
    Last Post: 05-24-2011, 11:31 AM
  3. Texas Hold'em Poker
    By JohnPringle83 in forum Java Gaming
    Replies: 0
    Last Post: 05-05-2011, 06:40 AM
  4. Please help Me out with this poker Problem
    By ckrisasa in forum Networking
    Replies: 8
    Last Post: 12-03-2009, 02:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts