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

# Thread: total noob needs help

1. ## total noob needs help

Hey guys. First and foremost, I'm a total noob so any and all advice is accepted. Secondly I'm trying to make basic games to start getting the hang of programming. I made a very basic dice game that simulates 20 rolls for a person while adding up the totals and displaying the running total after each roll. If the total was >= to 80 after the 20 rolls you win the game. What I'm trying to do now is create a two person, dice version of the game Chicago.

In the game there are eleven rounds numbered 2 - 12. In each round the player tries to roll and score the number of the round, the numbers being the combinations possible with 2 dice. If a player throws the correct number for that round they score 1 point. If they throw any other number they don’t score. The highest total after 11 rounds wins the game

So I was thinking I would use the current Die class I have from my previous dice game to actually create two six sided die. Also, I wanted to have the game alternate between player 1 and player 2 and display each player’s roll values, their score for that round, and the running total after each round. It would be awesome if anybody could help me with the code for the actual game. Of course I don't want anybody to just give me the code with no explanation as that wouldn't help me progress at all, but as I said I'm a total noob so providing code and explanation would be greatly appreciated. Or if you could just provide could I could break it down through the Java API and figure it out myself.. PLEASE HELP!