Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(contracts): interoperable tic tac toe game #181

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hamdiallam
Copy link
Contributor

@hamdiallam hamdiallam commented Oct 1, 2024

Multichain version of TicTacToe.

Instead of passing messages to a hub chain to play the game, the game is played just through events. Through interop, players on chains within a dependency set can play each other. The game follows these steps

  1. Player broadcasts a event to start a new game, NewGame
  2. Opponent accepts and emits an event AcceptedGame
  3. Player formalizes the handshake and starts a game
  4. Series of MovePlayed events between the two players until the game is won

Players locally play on their own chain and simply pull in the latest opposing event to progress the game forward

Copy link

cloudflare-workers-and-pages bot commented Oct 1, 2024

Deploying supersim with  Cloudflare Pages  Cloudflare Pages

Latest commit: 66a6713
Status: ✅  Deploy successful!
Preview URL: https://5bd05eb8.supersim.pages.dev
Branch Preview URL: https://interop-tictactoe.supersim.pages.dev

View logs

Copy link
Contributor Author

hamdiallam commented Oct 1, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hamdiallam and the rest of your teammates on Graphite Graphite

@hamdiallam hamdiallam changed the title TicTacToe game based played just on events feat(contracts): interoperable tic tac toe game Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant