Skip to content

A simple terminal-based Tic-Tac-Toe game in C for two players with real-time input handling and color-coded turns.

License

Notifications You must be signed in to change notification settings

Abishevs/TicTacToa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game in C

A simple terminal-based Tic-Tac-Toe game where two players can play together. The game is designed to be played in a terminal.

Features

  • Two-player gameplay
  • Real-time input handling
  • Visual representation of the game board
  • Color-coded turns (Green for active player, Red for inactive player)
  • Simple and intuitive controls

Gameplay

  • Player 1 (P1) uses the WASD keys to move and the G key to place their symbol (X).
  • Player 2 (P2) uses the arrow keys to move and the . (period) key to place their symbol (O).

Controls

  • P1 Controls:

    • w - Move Up
    • a - Move Left
    • s - Move Down
    • d - Move Right
    • g - Place Symbol
  • P2 Controls:

    • - Move Up
    • - Move Left
    • - Move Down
    • - Move Right
    • . - Place Symbol
  • General:

    • Q - Quit the game

Installation and Usage

  1. Clone it:
git clone https://github.com/Abishevs/TicTacToa.git
cd TicTacToa/ 
  1. Compile And Run
make
./build/tictactoa

Install

Into ~/.local/bin

make install
tictactoa

Uninstall

make uninstall

Author

Designed by Eduards Abisevs

About

A simple terminal-based Tic-Tac-Toe game in C for two players with real-time input handling and color-coded turns.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published