Casino Roulette

TOOLSFINANCIAL

Exposed methods

betBasket enables the player to bet on the numbers from 0-3 with a payout of 8:1

betOnColor the user chooses a color, if the random generated number matches with the color selected, the player will win the bet with a 1:1 payout.

parameter nametypedetails
_colorstringstores the chosen color by the player

betOnColumn enables the player to bet on one of the third columns with a 2:1 payout, if the number generated is 0, he gets half the bet back

parameter nametypedetails
_columnnumberuintstores the chosen column number

betOnDozen enables the player to bet on one of the 3 dozens with a 2:1 payout, if the number generated is 0, he gets half the bet back

parameter nametypedetails
_dozennumberuintstores the chosen dozen number (1,2 or 3)

betOnEvenOrOdd as the name of the function suggests, the player bets that the generated number will be either even or odd with a 1:1 payout,if the number generated is 0, he gets half the bet back

parameter nametypedetails
_choicestringstores the choice of the player, even or odd

betOnLowOrHigh the player can choose if he wants to bet on the first 18 numbers or the last 18 with a 1:1 payout, if the generated number is 0, the player will get half the wage back

parameter nametypedetails
_choicestringstores the choice of the player, low or high

betStraightUp enables the player to bet on any of the numbers with a 35:1 payout

parameter nametypedetails
_numberuintstores the number chosen by the player

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

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