Year 4 course Grade:
Tis smart contract implements a secure Matching Pennies game in Solidity ready to be deployed on the Ethereum blockchain. The game follows several steps:
- Two players register in the game and place their bet.
- Each player picks a move and a salt value. They compute their commitment with it and send it to the smart contract.
- After both players have sent their commitments, they will reveal their moves.
- The winner will be computed and s/he will be able to retrieve the money.
- The game is resetted and can be played again.
All the implementation details can be found in the coursework-document.pdf
This folder contains the api for defining an ERC-20 token which can be bought, transferred and sold.