game with betting between 1 user (the shooter) and the computer (the bank) for 1
ID: 3535436 • Letter: G
Question
game with betting between 1 user (the shooter) and the computer
(the bank) for 10 rounds. Players can bet on the various options by
placing chips in the appropriate sections of the board. The shooter
starts with 50 $1 chips and has two dice.
The user (i.e., the shooter) must place a bet of maximum 5 chips on
the "Pass" line or the "Don't Pass" line. The game is played in
rounds and these "Pass" and "Don't Pass" bets are betting on the
outcome of a round. Each round has two phases: "come-out" and
"point". To start a round, the shooter makes one "come-out" rolls.
A come-out roll of 2, 3 or 12 is called "craps" or "crapping out",
and the user betting the Pass line loses. A come-out roll of 7 or
11 is a "natural", and the Pass line wins (even wins: 1:1). The
other possible numbers are the point numbers: 4, 5, 6, 8, 9, and
10. If the shooter rolls one of these numbers on the come-out roll,
this establishes the "point" - to "pass" or "win", the point number
must be rolled again before a seven. The dealer flips a button to
the "On" side and moves it to the point number signifying the
second phase of the round. If the shooter "hits" the point value
again (any value of the dice that sum to the point will do; the
shooter doesn't have to exactly repeat the value combination of the
come-out roll) before rolling a seven, the Pass line wins (1:1) and
a new round starts. If the shooter rolls any seven before repeating
the point number (a "seven-out"), the Pass line loses and the round
is over. In all the above scenarios, whenever the Pass line wins,
the Don't Pass line loses, and vice versa, with one exception: on
the come-out roll, a roll of 12 will cause Pass Line bets to lose,
but Don't Pass bets are pushed (or "barred"), neither winning nor
losing.
Explanation / Answer
I have in total 4 solutions for your game. Not exactly your way but I have craps game implemented in 4 ways, ranging from basic one to the most complex one using Jplane.I am sending the links of online notepad where I stored them.
Hope it helps you.
Kindly rate for the effort.
Cheers!!!
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.