Inspiration

The inspiration behind this project was to create a classic game of Tic Tac Toe using the Linera SDK, showcasing the capabilities of Rust and blockchain technology in a fun and interactive way.

What it does

This project implements a Tic Tac Toe game where two players can compete by marking a 3x3 grid. The game determines the winner when a player aligns three marks horizontally, vertically, or diagonally.

How we built it

We built the game using Rust and the Linera SDK. The project includes:

  • A contract that handles game logic and state.
  • A service that provides a GraphQL API for interacting with the game.
  • A deployment script to set up the Linera network and deploy the game.

Challenges we ran into

  • Ensuring the game state is correctly managed and persisted across different sessions.
  • Implementing the game logic to handle various edge cases, such as invalid moves and determining the winner.
  • Integrating the Linera SDK for blockchain-based state management and ensuring secure operations.

Accomplishments that we're proud of

  • Successfully implementing a fully functional Tic Tac Toe game on a blockchain platform.
  • Creating a robust and secure game logic that handles all possible game scenarios.
  • Providing a seamless deployment process using the deploy.sh script.

What we learned

  • Deepened our understanding of Rust and its ecosystem, particularly in the context of blockchain development.
  • Gained experience with the Linera SDK and its capabilities for building decentralized applications.
  • Learned how to design and implement secure and efficient game logic.

What's next for Classic Tic-Tac-Toe

  • Adding a web interface to make the game more accessible and user-friendly.
  • Implementing additional features such as player statistics and leaderboards.
  • Exploring other classic games that can be built using the Linera SDK and Rust.

Built With

Share this project:

Updates