My GitHub repo for this project can be viewed here, while the game can be played here. ![]() A switch statement with cases for the different outcomes of the bets is used in combination with a boolean and additional if statements and for loops to assign the correct lose or winnings. The Math.floor and Math.random (multiplied by 37 for the numbers 00 and 0-36) methods are used for the spin feature. The player has to register with the GIOCA7 client and after that player is given username & password. The code I wrote uses if statements and for loops to identify the types of bets. fSystem Overview French Roulette is an online based casino game where player has to place chips on different numbers, a spin is done and based on the winning number, the winning or losing of a player is determined. Aside from the main game prompts, the game also asks the user if they would like to continue playing after each spin and prohibits a user from playing further if their bankroll drops to zero. The game users JavaScript prompts rather than an HTML interface. The player starts with a bankroll of $1,000 and is able to choose an amount to bet and a type of bet from the following options: Each game is made by a single contributor. The second portion of the first assignment for the “Falling in Love with JavaScript” course of Viking Code School‘s advanced prep involved creating a simple roulette game. This software is a Hub for three Casinò games: Blackjack, Roulette and Baccarat.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |