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
- Host: GitHub
- URL: https://github.com/jarun/tictactoe
- Owner: jarun
- License: other
- Created: 2017-03-29T09:17:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-03T14:57:30.000Z (almost 8 years ago)
- Last Synced: 2025-04-04T19:04:13.353Z (9 months ago)
- Topics: games, puzzle
- Language: C
- Size: 18.6 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)