I just built a game of roulette that anyone can play on chain!
It's really easy to play, you just have to send a transaction to the roulette's address with your bet as a comment.
Then a server that I'm running is checking this address, it will use some parameters of the transactions (such as hash, timestamp, etc...) to generate a random number between 0 and 36 and compute the results of your bet.
In only few seconds, it will send you back a transaction with your potential rewards and the result of the draw.
It's not a fully decentralized app yet because of the server, but everything is on chain so everyone can check!
Here is a Google Sheet with bets in real time, full instructions on how to play and a bet maker to help you create the correct transaction.
So to play, just send a transaction to vite_573405bb4fe1f72ebec80fc367cdd767a9c139523b8d850168 with your bet as a comment. For example you can comment "red" to bet on red or "20" to bet on 20.
The minimum bet is 1 VITE, and for the moment I limited the maximum earnings to 1000 VITE to avoid someone emptying the bank. It is also possible to make several bets in one transaction, I let you read the full instructions on the spreadsheet to learn how it works.
The rules are the same as the traditional European roulette.
I would really like to see what you guys think, and I hope you'll have fun with it and maybe even earn some VITE.
Good luck and have fun!
Feel free to ask anything!