Skip to content

Network Tic-Tac-Toe

About the Project

A client-server implementation of Tic-Tac-Toe that allows two players to play over a network. Implemented separately using both TCP and UDP protocols.

GitHub

Features

Game Implementation

  • 3x3 game board representation
  • Turn-based gameplay
  • Win/Draw detection
  • Play again functionality

Networking Features

  • Client-server architecture
  • Real-time game state updates
  • Player synchronization
  • Connection management
  • Both TCP and UDP implementations

Usage

  1. Compile the server and client executables:
Terminal window
make
  1. Start the server:
Terminal window
./server
  1. Connect two clients:
Terminal window
./client