Add Numbers is a BitVMX-based game where two players compete to solve a mathematical addition. The game uses Bitcoin's dispute resolution protocol to ensure fair play and automatic validation on chain by the BitVMX client. To understand more deeply about BitVMX and the game flow, please visit Game Flow Readme. You can also see more information about the program and protocol used. To understand how to play the game, go to Game Play Readme.
This repository was created as an example for the Berlin Hackathon. It is intended solely for demonstration purposes and has not been audited or tested in a production environment.
This repository hosts an Add Numbers game application, composed of backend and frontend.
The backend, located in the /backend directory, is crafted using Rust and the Axum framework to deliver REST APIs and facilitate communication with the BitVMX client via Tarpc. For detailed information, please consult the Backend Readme.
The frontend resides in the /frontend directory and is developed using Next.js. It serves as the user interface for the game. For further details, refer to the Frontend Readme.
- Docker (for Bitcoin Regtest node)
- Rust (for backend)
- Node.js (for frontend)
- Yarn (for frontend)
-
Clone the Repository
git clone https://github.com/FairgateLabs/bitvmx-hackathon-game
-
Initialize and Update Submodules: Navigate to the root of the repository, then initialize and update the git submodules to pull dependencies.
cd bitvmx-hackathon-game git submodule init git submodule update -
Set Up Frontend and Backend: Configure the frontend and backend by navigating to their directories after updating submodules. Ensure both projects are initiated. For setup and execution, see the Frontend Readme and Backend Readme.
This project is licensed under the MIT License - see LICENSE file for details.
This repository is a component of the BitVMX Ecosystem, an open platform for disputable computation secured by Bitcoin.
You can find the index of all BitVMX open-source components at FairgateLabs/BitVMX.