This is an implementation of battleship on blockchain similar to the one you must've played in your childhood.
- Clone the repository
git clone https://github.com/KSVSC/Battleship-DApp.git
cd Battleship-DApp && npm i
truffle build
cd app && npm i
- Run the backend server
go run Backend.go
from thebackend/
directory - Run the blockchain test net
truffle develop
and usedeploy
in the interactive CLI to deploy the contracts - Run the front-end server
npm start
from theapp/
directory
Enjoy the game!
The UI of the game was built with Two.js
(https://two.js.org/) backend (deployed on blockchain) was written in Solidity and a minimal Golang server is used as a backend for handling the contract addresses.