Real Problem: To determine, by experimental means, our chances of winning at the game of "craps".
- Area of Science: Mathematics/Probability
- Background: A player rolls two dice. Each die has six faces. These faces contain one, two, three, four, five, and six spots respectively. After the dice have come to rest, the sum of the spots on the two upward faces is calculated. If the sum is 7 or 11 on the first throw, the player wins. If the sum is 2, 3, or 12 on the first throw (called "craps"), the player loses (i.e. the "house" wins). If the sum is 4, 5, 6, 8, 9, or 10 on the first throw, that sum becomes the player's "point". To win, you must continue rolling the die until you "make your point" (i.e., roll your point value). The player loses by rolling a 7 before making the point.
From "Java : how to program" / H.M. Deitel, P.J. Deitel -- 4th ed.
- Why is this a Computational Science Project? To experimentally obtain our probabilities, with a high degree of accuracy, we would have to play millions of games! This would take much too long in the real world, but only seconds in our "virtual" world.