Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Socket XO ๐ŸŽฎ

A real-time multiplayer XO (Tic-Tac-Toe) game built with Python using sockets. Players connect to the server, take turns, and see the board update live in the terminal.

๐Ÿš€ Features

  • Multiplayer Tic-Tac-Toe (2 players)
  • Real-time updates from server
  • Turn-based gameplay
  • Win/Lose/Draw score tracking
  • Simple terminal interface

๐Ÿ› ๏ธ Built With

  • Python 3
  • Socket Programming (TCP)
  • Select (for handling multiple clients)

๐Ÿƒโ€โ™‚๏ธ Getting Started

  1. Clone the repository:

    git clone https://github.com/NaphatTor/XOgame.git
  2. Start the server:

    python server.py
  3. Open another terminal and run the client (do this twice for 2 players):

    python client.py
  4. Enter moves as:

    row col

๐Ÿ“ Project Structure

SocketXO/
โ”œโ”€โ”€ client.py      # Client-side: connects to server, sends moves, shows board
โ”œโ”€โ”€ server.py      # Server-side: manages game logic, turns, scores
โ”œโ”€โ”€ README.md      # Documentation

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages