Please make sure to interact with the game here 😱 Battleship Game
This Project is a battleship implementation on the blockchain
Having a fair implementation of Battleship on the blockchain is fairly difficult, and that's exactly what is implemented on this repo using reach.
- React
- Reach
- Reach stdlib
The hack provided me with the knowledge to build complex blockchain applications, but there were a couple of things that couldn't be implemented, which will be implemented in the future, such as;
- Using APIs instead of participants to enable a more fluid user experience.
To get this project running on your local environment for development docker
and docker compose
are needed
- reach
- reach-sh/stdlib
- Node js
- Navigate to the home page.
- Either connect your wallet or use the default account to play
- Insert name
- Choose spots to place ships
- Once ships have been placed wait for the contract to communicate with the blockchain
- You will be prompted to guess the position of the opponent's ship
- Keep on playing till all ships are destroyed
- @Prince-hope - Idea & Initial work
- Hat tip to Alex Younger for his code used
- Thanks to reach-lang and the helpful staff (Estefania, JP Miller, Candace, etc) for giving me this opportunity to participate in the hack
- Thank you to my mentor Joy Ayitey for helping me through the challenges