classic Battleship game that leverages zero-knowledge proofs and blockchain technology
The game follows the traditional Battleship rules where players take turns calling out coordinates to try and sink each other's hidden ships on a shared game board. However, instead of openly revealing their ship positions, players generate zero-knowledge proofs that encode the location of their ships without exposing the actual coordinates. These proofs are stored on the NEAR blockchain.
The RISC Zero Battleship game is built using Rust, a systems programming language known for its performance, safety, and concurrency features. At the core of the game lies the implementation of zero-knowledge proofs. The game leverages the NEAR Protocol, a decentralized application platform designed to make it easy to create, deploy, and manage decentralized applications (dApps) on the blockchain