A simple terminal-based implementation of the classic TicTacToe game written in Go, using the tcell library for handling terminal graphics and input.
- Implement a window Object (tcell screen), ready to be drawn on the screen.
- Uses
tickerUpdate() iterate over frames. Currently shows FPS top left the screen.
- Uses
- Single Box Object that can be clicked via the mouse button to draw on
XorO. - Set 9 boxes in the middle of the screen.
- Ensure all boxes are centered.
- GridView created and can draw list of boxes.
- The game show who wins the game
XorOat the end of every match.
- Show logs and current Turn. Status (Should be shown on the bottom of screen).
- Need to limit height of the Logs window. Only 5 lines shown.
- After each end of the game, should should a dialog, showing the winner
- Ask player to restart the game or exit.
- Dialog Box added
- Disable dialog windows with
hkey. - Single-player with MiniMax algorithm (will try to implement)
- To use AI, ensure that its player 2 turn and press
akey to start the AI move.
- To use AI, ensure that its player 2 turn and press
- Win pattern change color on the board
Clone repository
git clone https://github.com/omar0ali/tictactoe-game-cli.gitRun the game
go run .