Game for blockchain presentation in ScienceSoft

May 30, 2022

Ethereum blockchain roulette implementation using smart contracts and Web3. Prepared for blockchain presentation.

This project is a proof of concept of a game for blockchain presentation. The aim is to engage people in the blockchain community and to show how blockchain can be used in a real world application. The game is based on the roulette game.

Technologies used:

  • Solidity
  • Ethereum blockchain
  • JavaScript
  • Web3
  • HTML/CSS

To take part in game you will need metamask extension installed. To download it go to Metamask website. Please use Chrome browser.

Step 1

Navigate to Demo Game Website will check if Metamask extension installed and will suggest to switch metamask to Ropsten test network.

Step 2

You will need some Ether to be on your new wallet to play the game. To some test ether to your wallet in Ropsten test network, please visit Faucet 1 or Faucet 2

Step 3

Make a bet on the roulette board. You can select numbers from 0 to 36. To confirm a bet you will need to sign a transaction in Metamask.

Step 4

Spin the wheel when everyone will make a bet. To spin a wheel you will need to sign a transaction in Metamask.

Step 5

Winner will be selected randomly. This is a pseudo random number based on blockchain block number. In production its better to rely on Oracles random numbers. Winner of the roulette will get all the ether from smart contract account.