- Terminal / Powershell / Command Prompt
- Python 3
- Minimum 1 server & 2 clients
- Download ZIP file or clone this github repo
git clone https://github.com/mlintang20/tictactoe-socket-programming.git
- 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
- Open the serverconf.conf file and edit host and port with your IP Address and port
host=xx.xx.xx.xx
port=xxxx
- Open terminal in root directory, then start the server with this command
python server.py
- 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
-
Player 1 types the room number
-
Player 2 types the same room number as Player 1 because each room must have exactly 2 players