Gashapon Game Center offers users to create their own gashapon and play the gashapon game and receive a reward!
- Player will not know the total amount of gashapon in the machine if the number of balls in the machine is higher than 30% of the total ball.
- Player will not know the number of each item in the machine if the number of each item in the machine is higher than 30% of the total ball.
- The price to play gashapon will be increased every time someone plays the game, the incrementation price will be set by the owner of the machine.
- If the gashapon has less than 30% of the total ball, the price to play gashapon will be recalculated by multiplying each item to the actual price.
- The machine will randomly select the item in the machine.
- Only the owner can withdraw all the money received in the machine if the machine is empty
Note that for simplicity, the items and it corresponding price are fixed.
This project is only tested in remix using JavaScript VM (London) environment, and written with Solidity 0.8.7.
This project is developed by 💙 Arissara Chotivichit (Blue) 🍀 Atisit Pipatupatum (Boss) 🐡 Pittayut Naktaweewong (March)