Skip to content

Online Tictactoe game using client-server architecture (CLI based)

Notifications You must be signed in to change notification settings

mlintang20/tictactoe-socket-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tictactoe using Socket Programming in Python

Requirement

  • Terminal / Powershell / Command Prompt
  • Python 3
  • Minimum 1 server & 2 clients

How to play

  1. Download ZIP file or clone this github repo
git clone https://github.com/mlintang20/tictactoe-socket-programming.git
  1. Copy serverconf.conf.example file, then paste it with file name serverconf.conf or just do this in terminal/command prompt
cp serverconf.conf.example serverconf.conf
  1. Open the serverconf.conf file and edit host and port with your IP Address and port
host=xx.xx.xx.xx
port=xxxx
  1. Open terminal in root directory, then start the server with this command
python server.py
  1. Open terminal in root directory (can be run on the same or different computers), then start the client with this command (minimum 2 client to play this game)
python client.py
  1. Player 1 types the room number

  2. Player 2 types the same room number as Player 1 because each room must have exactly 2 players

Documentation

ss1 ss2

About

Online Tictactoe game using client-server architecture (CLI based)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages