NOTE -- Even though you can simulate both Player1 and Player2 from a single browser, I recommend you using two different browsers or even two different PCs to play the game.
Player 1creates a game with the wallet address of player 2,stakesome eth and make his commitment.Player 2just connects his ethereum account (it must be the same addressPlayer 1used to create the game), and clicks onJoin Game.- After
Player 2Joins the game, he selects his commitment and proceed. (he must have>= stakeamount available in his wallet, else he wont be able to play the game). - After
Player 2plays,Player 1can now reveal his move, and the stake gets distributed to the winner, or splitted incase of a draw.
@> https://cloud.google.com/application/web3/faucet/ethereum/sepolia