![Project logo](/_next/image?url=https%3A%2F%2Fgear-foundation-web.s3.us-west-1.amazonaws.com%2Fvara-prod%2F8b887443-a974-4c01-979b-aad81e2edbb0.png&w=256&q=75)
Tic-Tac-Toe
A classic and simple game in which the user competes against a program operating on the blockchain network.
![Slide image](/_next/image?url=https%3A%2F%2Fgear-foundation-web.s3.us-west-1.amazonaws.com%2Fvara-prod%2F40703a86-5f66-40b1-9cae-448d7ada4958.png&w=1920&q=65)
![Slide image](/_next/image?url=https%3A%2F%2Fgear-foundation-web.s3.us-west-1.amazonaws.com%2Fvara-prod%2F64657e42-f52a-4390-9ac9-abe85a46807b.png&w=1920&q=65)
Description
Few classic gaming titles hold as much nostalgia and timeless appeal as Tic-Tac-Toe. This simple yet engaging game has captivated generations with its straightforward rules and the thrill of outwitting opponents. Now, imagine putting your strategic prowess against an adversary unlike any other – a decentralized program operating on the cutting-edge Vara blockchain network.
How to Play
The rules of Tic-Tac-Toe remain unchanged—the objective is to be the first to get three of your marks in a horizontal, vertical, or diagonal row. However, the seamless integration with the Vara blockchain elevates the experience.
To begin, simply initiate a new game, and the program will randomly assign you as either X or O. Every decision counts as you strive to outmaneuver your blockchain-based opponent.
Technical Aspect
Tic-Tac-Toe on Vara showcases the innovative capabilities of the Gear Protocol and its decentralized infrastructure. Unlike traditional games that rely on centralized servers, this implementation operates entirely on-chain, leveraging the asynchronous messaging paradigm of the Vara network.
Usually, a program's state advances as the application is utilized. A distinctive feature of this game's implementation is its capability to clean up its storage. Once the game session is completed and the results are recorded in the program, a special delayed message purges all unnecessary data structures. Delayed messages represent one of the various unique features of the Gear Protocol.
More details can be found at https://wiki.gear-tech.io/docs/examples/Gaming/tictactoe.
Gear Foundation
- Game