Tic-tac-toe game but it's actually called Zik-zak-zoo (& you can zk-verify you won thanks to RISC Zero)
Title is pretty self-explanatory, but let's dive into the details!
Zik-zak-zoo is a fun twist on the classic tic-tac-toe game, where:
- You play as 'Z' against the computer's 'K'
- The game logic is implemented in Rust
- You can prove your win using zero-knowledge proofs powered by RISC Zero
First, make sure rustup
is installed. The rust-toolchain.toml
file will be used by cargo
to automatically install the correct version.
To build all methods and execute the method within the zkVM, run the following command:
RISC0_DEV_MODE=0 cargo run --release
- The game uses a simple RNG for the computer's moves (LCR with MMIX parameters)
- Your moves are recorded along with the initial seed
- After the round is played, the game data is used to generate a zero-knowledge proof...
- ... which get you bragging rights with cryptographic proof of your Zik-zak-zoo skills (well, if you won)!
core/
: Contains the core game logic and data structureshost/
: Implements the game flow and user interactionmethods/
: Handles the zero-knowledge proof generation
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.
RISC Zero would love to hear from you on Discord or Twitter.