Rock Paper Scissors Bet

Exposed Methods

setToken sets the price of a token

parameter nametypedetails
_tokenuintstores the price required for a bet

getChanges hecks if the bets can be placed/owner can withdraw or change the price of the token

getTokenPrice returns the price of a token

bet enables the player to bet on one of the 3 outcomes

checkWinner checks if an address has won

withdraw withdraw function for the owner


TokenSet tracks when the token price was set

BetPlaced tracks when a bet was placed

Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract