Skip to content

Tic-tac-toe, but zik-zak-zoe cause I like zk (and also the game is verifiable in RISC Zero zkVM), but zik-zak-zoo cause zk-people are such amazing animals

License

Notifications You must be signed in to change notification settings

guelowrd/zik-zak-zoo-R0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

What is Zik-zak-zoo?

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

Quick Start

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

How it works

  1. The game uses a simple RNG for the computer's moves (LCR with MMIX parameters)
  2. Your moves are recorded along with the initial seed
  3. After the round is played, the game data is used to generate a zero-knowledge proof...
  4. ... which get you bragging rights with cryptographic proof of your Zik-zak-zoo skills (well, if you won)!

Project Structure

  • core/: Contains the core game logic and data structures
  • host/: Implements the game flow and user interaction
  • methods/: Handles the zero-knowledge proof generation

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

Questions, Feedback, and Collaborations (keeping that part cause RISC Zero ppl are cool!)

RISC Zero would love to hear from you on Discord or Twitter.

About

Tic-tac-toe, but zik-zak-zoe cause I like zk (and also the game is verifiable in RISC Zero zkVM), but zik-zak-zoo cause zk-people are such amazing animals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages