Skip to content

Releases: omar0ali/tictactoe-game-cli

TicTacToe-Game v1.0.1

22 Aug 17:45

Choose a tag to compare

feat: Change the color of boxes when a win pattern triggers

Full Changelog: v1.0.0...v1.0.1

TicTacToe-Game

17 Aug 17:49

Choose a tag to compare

TicTacToe CLI Game

A simple terminal-based implementation of the classic TicTacToe game written in Go, using the tcell library for handling terminal graphics and input.

TicTacToe Game

  • Implement a window Object (tcell screen), ready to be drawn on the screen.
    • Uses ticker Update() iterate over frames. Currently shows FPS top left the screen.
  • Single Box Object that can be clicked via the mouse button to draw on X or O.
  • 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 X or O at 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 h key.
  • Single-player with MiniMax algorithm (will try to implement)
    • To use AI, ensure that its player 2 turn and press a key to start the AI move.