Skip to content

Battleship Game that can run on three blockchains depending on the configuration set. Built with Reach-lang

Notifications You must be signed in to change notification settings

prince-hope1975/blockchain-battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

Battles Ship

Please make sure to interact with the game here 😱 Battleship Game


This Project is a battleship implementation on the blockchain

📝 Table of Contents

🧐 Problem Statement

Having a fair implementation of Battleship on the blockchain is fairly difficult, and that's exactly what is implemented on this repo using reach.

⛓️ Dependencies / Limitations

  • React
  • Reach
  • Reach stdlib

🚀 Future Scope

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.

🏁 Getting Started

To get this project running on your local environment for development docker and docker compose are needed

Prerequisites

  • reach
  • reach-sh/stdlib
  • Node js

🎈 Usage

  • 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

⛏️ Built With

✍️ Authors

🎉 Acknowledgments

  • 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

About

Battleship Game that can run on three blockchains depending on the configuration set. Built with Reach-lang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published