About 63,000 results
Open links in new tab
  1. Simulating Game of Craps in JAVA - Stack Overflow

    Apr 3, 2015 · In the game of craps, a pass line bet proceeds as follows: Two six-sided dice are rolled; the first roll of the dice in a craps round is called the “come out roll.” A come out roll of 7 or 11 automatically wins, and a come out roll of 2, 3, or 12 automatically loses.

  2. A simulation the game of craps java - Stack Overflow

    Nov 12, 2016 · please help the instructions are: In the game of craps, a pass line bet proceeds as follows. Two six-sided dice are rolled; the first roll of the dice in a craps round is called the “come out roll.” A come-out roll of 7 or 11 automatically wins, and a come out roll of 2, 3, or 12 automatically loses.

  3. Game of Craps: Java programming - Stack Overflow

    Nov 12, 2016 · Exception in thread "main" java.lang.ArithmeticException: / by zero at Dice.main(Dice.java:71) please help the instructions are: In the game of craps, a pass line bet proceeds as follows. Two six-sided dice are rolled; the first roll of the dice in a craps round is called the “come out roll.”

  4. java - Craps game: How do i get the while loop in this code from …

    Apr 27, 2016 · this are comments that explain the game so you can test it, but the main problem is when you are suppose to run the while loop if you a point value then it becomes an infinite loop.

  5. random - Craps Game Java - Stack Overflow

    Oct 19, 2015 · I am supposed to be making a game of craps in java, but I have a problem. You see, technically the game is finished, but it will not say if you loose the game or not even if you do. It will only continue to roll til you win. I tried a couple workarounds but it only seems to trap it in an infinite loop. Game rules: Roll two dice.

  6. java - Playing "craps" for the win - Code Review Stack Exchange

    Nov 4, 2014 · ClassNames in Java should have CapitalizedCamelCase, so your class should be HelloWorld, but Craps is probably a better name. All your variables are static? Creating a new Random instance each time you roll the dice is an unnecessary overhead. This is a case where you can have a static variable (it is thread-safe).

  7. java - Trying to write a program that simulates a craps using …

    In the game of craps, a pass line bet proceeds as follows: Two six-sided dice are rolled; the first roll of the dice in a craps round is called the " come out roll." A come out roll of 7 or 11 automatically wins, and a come out roll of 2,3 or 12 automatically loses.

  8. java - Craps game: breaking a single method to more than one

    Nov 13, 2014 · Below is a long messy one method code for a craps game. The user can play the game multiple times and has the option to quit when ever they want. How could you break this code down into different ...

  9. java - What is wrong with my Rolling Craps code ... - Stack Overflow

    Apr 7, 2017 · So I am coding a game of craps which requires me to roll two dice and return the sum of the dice. Rolling a 7 or 11 wins you the game, rolling a 2, 3, or 12 however will lose you the game.

  10. Java: Dice craps game with output not getting right

    May 26, 2016 · I'm working on a java program that will craps with two dice. I need to have the following: On the first roll, the player throws both 6-sided dice - The dice are summed together and if the sum is ...

Refresh