Skip to content

JugalKothari/Socket-TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game using Socket Programming

This project implements a simple Tic Tac Toe game using Socket programming. It allows two players to connect to a server and play the game remotely.

Project Structure

  • server.py: Server-side script that manages the game logic and communication with connected clients.
  • player.py: Client-side script for each player, responsible for handling user input and communicating with the server.

How to Play

  1. Clone the Repository:

    git clone https://github.com/yourusername/tic-tac-toe-socket.git
    cd tic-tac-toe-socket
    
  2. Check IP address of your server:

    ipconfig
    
  3. Modify address in server.py for host variable to match the IP address of the server

  4. Run server.py first on the host device

    python server.py
    
  5. Run player.py on two separate terminals or two different devices

    python player.py
    

That's it. Enjoy your game!

Releases

No releases published

Packages

No packages published

Languages