Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Dice Game! PLEASE HELP!

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dice Game! PLEASE HELP!

    I need to make a game where it simulates 2 dice being rolled. The instructions are: in this game, two dices are rolled. You win the game if the sum of two dices is "7", otherwise, you'll lose the game. The game should be in a loop so that the user can keep playing until he/she wants to quit. Here is what it is like: "Would you like to play the game? (y/n)" user imputs y. "1st dice: 6, 2nd dice: 2" println "sorry you lost." "Continue to play the game? (y/n)" user imputs y. "1st dice: 5, 2nd dice: 1" println "Sorry, you lost." "Continue to play the game? (y/n)"


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: Dice Game! PLEASE HELP!

    What is your problem? Where are you stuck? You've got to post your code and ask specific questions to get help.

  3. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Dice Game! PLEASE HELP!

    He wants you to make the game lol

  4. #4
    Junior Member
    Join Date
    Dec 2013
    Posts
    10
    My Mood
    Aggressive
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Dice Game! PLEASE HELP!

    You need to be more specific. We cannot make entire programs for you, this section is for errors. Please either be more specific in whats wrong, or learn Java.

    -Luke

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Dice Game! PLEASE HELP!

    @LukeR, Come out swingin'.

  6. The Following User Says Thank You to GregBrannon For This Useful Post:

    LukeR (December 14th, 2013)

Similar Threads

  1. dice game problem
    By Nick87 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 23rd, 2013, 04:02 PM
  2. Replies: 3
    Last Post: March 1st, 2013, 11:01 PM
  3. Help with 3 guess Dice game
    By tabmanmatt in forum Loops & Control Statements
    Replies: 1
    Last Post: November 28th, 2012, 07:42 PM
  4. [SOLVED] Dice game need help
    By lf2killer in forum Loops & Control Statements
    Replies: 6
    Last Post: October 5th, 2012, 02:25 AM
  5. Dice game help, a little cleanup
    By SnarkKnuckle in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 28th, 2011, 12:28 PM

Tags for this Thread