en
Back to the list

Tic Tac Toe is played on Bitcoin SV

source-logo  en.cryptonomist.ch 06 October 2020 03:00, UTC

Developer Zachary Weiner has announced that he has developed a smart contract for the famous Tic Tac Toe game directly on the Bitcoin SV (BSV) blockchain.

I published a thing: #TicTacToe #smartcontracts on #bitcoin using #bitcoinsv and #bitcoincomputer by writing #javascript to the #blockchain and using the #distributed #ledger as a #trusted #global #state #machine https://t.co/8E6zvMz0tF

— Zack Wins (@DevelopingZack) October 4, 2020

The game, dating back to Roman times, is based on a 3×3 square grid in which players take turns choosing an empty square and drawing a cross or a circle. 

Although this game may seem trivial, remember that it is often used as an example to explain the theory of games and the basics of artificial intelligence. It is a game with perfect information and zero sum, whose perfect strategy is known, that is, Nash’s balance.

Since the possible solutions are limited and it is possible to create an algorithm that practically never loses, the first game played by a computer was precisely this, OXO, developed in 1952.

Now that we have some history of the game, let us move forward in time and the era of blockchain, since the dev decided to develop the game on BSV.

Tic Tac Toe on Bitcoin SV

The contract has been developed with the Javascript programming language and contains inside it all the variables and functions that will be used to perform the various moves, with standard symbols of the game itself.

Everything has been done using Bitcoin Computer, which are the Javascript smart contract on the Bitcoin blockchain and all its forks, such as BCH, NSV and possibly the next Bitcoin Cash fork.

Surely the world of gaming and blockchain are now very close and allow a really huge outlet that still has unexplored potential. 

A short time ago was also developed the first game on Algorand, AlgoNim, which is all on-chain, but in fact the examples are varied, not to mention advanced games that also allow the use of NFT (Non Fungible Token) as those of Animoca Brands.

en.cryptonomist.ch