Skip to content

h1xten/tic-tac-toe-hopr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe dApp using HOPR.

Tic-tac-toe is a logical game between two opponents on a square field of 3 by 3 cells. One of the players plays "X", the second - "O". Players take turns putting signs on free cells (one is always X, the other is always O). The first one to line up 3 of their pieces vertically, horizontally or diagonally wins.

Development

Developed with

Game

The game requires 2 participants (2 nodes).
The player must set the node settings (Node API Endpoint, Security Token).
The player can create a game or join an existing one by specifying the opponent's address.
The side for which you will play (X or O) is chosen randomly. When both players connect, they are given a randomly generated number. The player whose number is greater than the opponent's number goes first (side X).
When a player makes a move, a message with his move (his side and cell index) is sent to the opponent.

Usage

Contacts

Notice

This project is not audited and should not be used in a production environment.

Releases

No releases published

Packages

No packages published