Results 1 to 5 of 5
  1. #1
    nube07 is offline Member
    Join Date
    Jul 2008
    Posts
    1
    Rep Power
    0

    Default Roll dice class with three dices

    Please disregard this thread
    Last edited by nube07; 07-14-2008 at 01:47 AM.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Do you want to match three numbers? Little bit confusing about your question.

    Java Code:
    while ((total1 != total2 & total3 != total2));
    Seems here you are trying to compare two numbers only.

  3. #3
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,459
    Rep Power
    25

    Default

    Could you post the output from the program and explain why it is not what you want?

    What are die1, die2 and die3? They appear to be variables in the PairOfDice class. What values do they have? How are those values set?
    Last edited by Norm; 07-08-2008 at 04:38 PM.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by nube07 View Post
    I am trying to match three numbers
    You're not explaining things well, and this is making it harder for us to help you.

    One great resource is this article entitled How To Ask Questions The Smart Way . It will tell you how to formulate your questions so that the folks here will be better able to answer them. Good luck.

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. java help please- two sided dice
    By pat8 in forum Advanced Java
    Replies: 3
    Last Post: 07-01-2008, 02:25 AM
  2. Roll 2-Dice "Pig" Game Help
    By King8654 in forum AWT / Swing
    Replies: 7
    Last Post: 04-07-2008, 06:58 PM
  3. Defective code for dice, help please?
    By byron in forum New To Java
    Replies: 10
    Last Post: 04-01-2008, 06:22 AM
  4. Help debugging a dice game
    By Windoze in forum New To Java
    Replies: 7
    Last Post: 11-22-2007, 01:01 AM
  5. help debugging a dice game
    By Windoze in forum Advanced Java
    Replies: 0
    Last Post: 11-16-2007, 10:28 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
  •