Russian Roulette Wheel
Possible Roulette Origins
As with many games, there are competing theories as to the origin of Roulette. The most popular is that it was invented in 1655 by a French scientist called Blaise Pascal during his monastic retreat and first played in a casino in Paris.
The second is very similar and simply says that it was invented by a random French monk to alleviate the monotony of simple monastery life.
The science behind roulette is simple: there is a spinning wheel, a spinning ball, gravity, and ball bounce. These are all elements of the science known as physics. When you understand the physics of the game, you can predict the outcomes, increase your odds, and win. Definition of play Russian roulette in the Idioms Dictionary. Play Russian roulette phrase. What does play Russian roulette expression mean? Definitions by the largest Idiom Dictionary. You're playing Russian roulette every single time you get behind the wheel of a car when you've been drinking. See also: play, roulette, Russian.
The third theory is that French Dominican monks invented Roulette, basing it upon an old Tibetan game in which the object was to arrange 37 animal statuettes into a magic number square of 666. The Tibetan game reportedly came from China but unfortunately, the method of play is not recorded. The monks seem to have created the game by transposing the 37 statuettes to the number 0 to 36 and arranging them randomly around the rim of a revolving wheel.
Russian Roulette Table For Sale
Of the 3 theories above, the third seems to lack any evidence but, cutting through the chaff, the common theme is that the game was invented in a monastery in France and it would seem reasonable to assume this is based in truth. Whether the actual monk inventor was Blaise Pascal is more open.
importjava.util.Random; |
importjava.util.Scanner; |
publicclassRouletteGame |
{ |
publicstaticvoidmain(String[] args) |
{ |
Scanner keyboard =newScanner(System.in); |
Random generator =newRandom(); |
double total =500; |
double amount; |
int choice, win =0, lose =0, spin =0; |
int number; |
int rouletteNum; |
int result; |
char response ='y'; |
int resultArr[] =newint[36]; |
while (response 'y' response 'Y'&& total <=0) |
{ |
System.out.print('Enter your bet amount: '); |
amount = keyboard.nextDouble(); |
System.out.print('0 - Evenn1 - Oddn2 - Numbern'); |
choice =-1; |
while (choice <0 choice >2) |
{ |
System.out.print('Place your bet on: '); |
choice = keyboard.nextInt(); |
} |
number =0; |
if (choice 2) |
{ |
while (number <1 number >36) |
{ |
System.out.print('Place your bet on number(1-36): '); |
number = keyboard.nextInt(); |
} |
} |
rouletteNum = generator.nextInt(37); |
spin++; |
System.out.println('Roulette number: '+ rouletteNum); |
if (choice 2) |
{ |
if (rouletteNum number) |
result =35; |
else |
result =0; |
} |
else |
{ |
if (rouletteNum 0 rouletteNum %2!= choice) |
result =0; |
else |
result =1; |
} |
//Print out game result, win/lose amount |
if (result >0) |
{ |
System.out.println('Congratulatons!!! You win!'); |
System.out.printf('You have won $%.2f n', result * amount); |
System.out.printf('Here's your money back: $%.2f n', |
(result +1) * amount); |
total = (result +1) * amount + total; |
win ++; |
resultArr[rouletteNum]++; |
} |
else |
{ |
System.out.println('You lose. Better luck next time!'); |
System.out.printf('You have lost $%.2f n', |
(result +1) * amount); |
total = total - (result +1) * (amount); |
lose ++; |
resultArr[rouletteNum]++; |
if (total <=0) { |
break; |
} |
} |
//Ask for another game |
for (int totals=1; totals<36; totals++) { |
if( resultArr[totals] >0 ) { |
System.out.println('The number '+ totals +' won '+ resultArr[totals] +' times.'); |
} |
} |
System.out.println('You hayve $'+ total +' remaining.' ); |
System.out.println('You have won '+ win +' games.'); |
System.out.println('You have lost '+ lose +' games.'); |
System.out.println('The wheel has been spun '+ spin +' times.'); |
System.out.print('nWould you like to play another game? (y/n) '); |
response = keyboard.next().charAt(0); |
} |
} |
} |