A classic card game where you compare numerical data of cars. https://en.wikipedia.org/wiki/Top_Trumps
- Use MetaMask connection to Ropsten
- Open Live Demo
Gameplay
- Player registers as a player
- 3 cards are given for every player in registration
- Player can see other players and how many cards they have
- Player can play againts a player by choosin "play with" button after player's name
- Player chooses a value from his card to compete againts opponents card. By choosing "play" button.
- After this result of the game round is show to the player
- Winner gets the card of the loser
- Clone repo
- Install MetaMask for your browser
- Run
npm install
- Start rpc or ganache. (Change the network address accordingly in truffle.js)
- Compile and migrate contract
truffle compile && truffle migrate
- Run
npm run dev
- Open browser to localhost if previous command didn't automatically
- Use frontend framework like angular
- Clean up code
- Add error checks to frontend
- Wish there was more hours in a day than 24