Skip to content

Tic-Tac-Toe game in C++ with sockets and client-server TCP communication

Notifications You must be signed in to change notification settings

lukasondrejka/cpp-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

This is a simple Tic Tac Toe game implemented in C++ with using client-server architecture and sockets for communication.

Setup

Linux is required to build and run the project (tested on Ubuntu).

  1. Build the project with make
make
  1. Run the server
./app s
  1. Run the client (in another terminal)
./app c
  1. Play the game

Inputs are in the format of rowcol where row and col are integers between 1 and 3. For example, to place a mark in first row and third column, you should enter 13. After each move, the board will be printed to the console. Game ends when one of the players wins or the board is full.

About

Tic-Tac-Toe game in C++ with sockets and client-server TCP communication

Topics

Resources

Stars

Watchers

Forks