- A continuous game, finishing one automatically starts the next
- Uses a hash-based commitment scheme
- For 2 players, but every game can have different accounts participating
- Once both players reveal their choice, the winner is decided and the game is reset
The official Dojo Starter guide, the quickest and most streamlined way to get your Dojo Autonomous World up and running. This guide will assist you with the initial setup, from cloning the repository to deploying your world.
The Dojo Starter contains the minimum required code to bootstrap your Dojo Autonomous World. This starter package is included in the dojoup
binary. For more detailed instructions, please refer to the official Dojo Book here.
Follow the steps below to setup and run your first Autonomous World.
Start by installing dojoup
. This cli tool is a critical component when building with Dojo. It manages dependencies and helps in building your project. Run the following command in your terminal:
curl -L https://install.dojoengine.org | bash
dojoup
The command downloads the dojoup
installation script and executes it.
The next step is to clone the repository to your local machine. Open your terminal and type the following command:
git clone https://github.com/coostendorp/dojo-web-starter && cd dojo-web-starter
This command will create a local copy of the Dojo Web Starter repository and enter the project directory.
With dojoup
installed, you can now build your example world using the following command:
make build
This command compiles your project and prepares it for execution.
Katana RPC is the communication layer for your Dojo World. It allows different components of your world to communicate with each other. To start Katana RPC, use the following command:
katana --allow-zero-max-fee
Finally, deploy your world using the sozo migrate
command. This command, deploys your world to Katana!
make deploy
make prep_web
cd web
yarn
cd web
yarn dev