Roulette is a popular casino game. In the game, a player may choose to place a bet on a single number, various groupings of numbers, the color red or black, whether the number is odd or even, or if the numbers are high (19–36) or low (1–18).
HTML, CSS and JavaScript were used in this game.
Click https://jameszhao1021.github.io/Roulette-Game to open the browser. You can also clone the repository, then run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
You can follow the instructions to play the game:
- Choose a chip, the default value is 100, you can also choose 50, 250, 500, and 1000.
- Place your chip on the table, you can place multiple chips at the same or different positions. The current betting value should not exceed the balance.
- Click the 'Spin' button to start the game.
- The result will be highlighted on the table, and the data about win or loss will be displayed in the top right corner.
- Place a chip on the table or click the 'Delete All' button to clear the previous chips, and then start the next spin.
- You are bankrupt When your balance becomes zero after a spin, you can click the 'Restart Game' button to restart the game. you can also click the 'Restart' button anytime if you want to reset your data.
- You can enable or disable the sound effect by clicking the checkbox.