Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (18 loc) · 531 Bytes

ContractExplained.md

File metadata and controls

33 lines (18 loc) · 531 Bytes

Script Title

CoinToss.sol

How is the Contract setup

  • Player bets an amount(ETH) and choice of HEADS or TAILS.

  • Contract generates a random number of 0 or 1.

  • Contract checks if the player`s choice is equal to random generatet number

  • If the number is correct, contract should transfer the (betAmount *2) to the players address

Data Structure

Multiple Bet

Player ID Wallet Address

Prerequisites

What things you need to install the software and how to install them

Give examples

Installing