RockPaperScissors is a decentralized, trustless version of the classic Rock–Paper–Scissors game — built entirely on the Ethereum blockchain using Solidity.
This contract ensures fairness by using a commit–reveal mechanism, preventing cheating or front-running during gameplay.
Players commit to a hashed move first (without revealing it), and later reveal the move with their secret to determine the winner on-chain.
No central authority or game server is needed — everything runs transparently on Ethereum.
ensure fairness in game
Fair Play — Uses commit–reveal scheme to prevent cheating.
On-Chain Resolution — The result is verifiable and permanently recorded.
Event-Based Architecture — Every action (create, commit, reveal, resolve) emits blockchain events.
Lightweight — Optimized for low gas usage.
Extensible — Can be upgraded to include betting, NFTs, or tournaments.
India