Skip to content

whoisdinanath/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

TIC TAC TOE

This is a simple Tic Tac Toe game implemented in C. The game allows two players to take turns and place their marks (X or O) on a 3x3 grid. The game checks for a winner after each move and declares the result when a player wins or the game ends in a tie.

How to Play

  1. Run the program.
  2. Players take turns to choose a position on the grid (0-8).
  3. The game will display the current state of the board after each move.
  4. The game will announce the winner or declare a tie when the game ends.

Features

  • Simple text-based interface.
  • Checks for valid moves and prevents overwriting.
  • Detects win conditions and announces the winner.
  • Handles tie situations when the board is full.

Enjoy playing and learning C programming!

About

Simple tic-tac-toe game to learn C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages