An open API service indexing awesome lists of open source software.

https://github.com/jarun/tictactoe

Checks the state of a Tic-Tac-Toe game
https://github.com/jarun/tictactoe

games puzzle

Last synced: 6 months ago
JSON representation

Checks the state of a Tic-Tac-Toe game

Awesome Lists containing this project

README

          

# TicTacToe
Checks the state of a Tic-Tac-Toe game

The board is represented by 3 bytes. Each row is represented by 6 MSBs of a byte. The 2 LSB bits are ignored.

Each square is represented using 2 bits. The meaning of the binary values are:

| Square State | Bit Value |
| --- |:---:|
| Empty square | `00` |
| Tick | `01` |
| Cross | `10` |
| Invalid | `11` |

# License & Copyright

GPLv3.0

Copyright (C) 2015 [Arun Prakash Jana](mailto:engineerarun@gmail.com)