Russian Roulette

FINANCIAL

Exposed methods

addPlayer adds a player's bet and adds a nickname to it

parameter nametypedetails
_nicknamestringnickname of the player

revolver chooses a player based on a random number, once the number is chosen, the player that has that position number in the array, wins

setConditions Allows the owner of the contract to set a minimum wage

parameter nametypedetails
_minwageuintset by the owner to put the mimum wage for the roulette

checkLength verifies how many players have bet so far

withdraw allows the owner to get his earnings if there a no bets in progress

checkwinner upon entering an address, the function will check if it one of the former winners or not

parameter nametypedetails
_addraddressthe address to check
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract