
Racing Cars
The Racing Cars revolves around a competition where a user races against two pre-uploaded programs on the blockchain.



Three cars vie to be the first to cross the finish line in several moves. Both the user and the program algorithms decide their next move – whether to accelerate or sabotage another car to slow it down.
In a well-known Ethereum-based 0xMonaco game, participants upload their personalized program strategies, all managed by a central Master contract. Central components were necessary to enable multi-block gameplay.
However, in the case of Vara, the game operates fully on-chain, thanks to the asynchronous messaging paradigm. Various actors (programs) communicate with each other, and if a game round can't be accommodated within a single block, it carries over into subsequent ones.
For in-depth details, refer to this resource: https://wiki.gear-tech.io/docs/examples/Gaming/racingcars.
Maryna Melekhavets
- Gaming
- Wallet