Online-TicTacToe (Server)
Online-tictactoe server is a server-side part of online-tictactoe game using python socket lib and pickle lib aim to make a stable connection between two threaded tictactoe players and send/recv data from/to players as objects using pickle lib.
There are two ways to use the server :
-
Using exe version without any requirements :
-
Download entire exe dir
-
Configure server.yaml file (set server host & port)
-
Run exe/main.exe
-
Press start button
-
-
Using runner.sh and there are three ways:
-
Inside your machine (both CLI & GUI) :
- Install requirements:
$ sudo pip3 install -r requirements.txt
- Configure server.yaml file (set server host & port)
- CLI :
$ ./runner.sh c
- GUI :
$ ./runner.sh g
- Install requirements:
-
Inside docker container (only CLI version) :
- Configure server.yaml file (set server host & port)
- Build and run docker :
$ ./runner.sh host port
$ ./runner.sh 0.0.0.0 6000
-
The entire server.server.Server unit tests include within tests directory
- Install requirements:
$ sudo pip3 install -r requirements.txt
- Run tests using runner.sh
$ ./runner.sh t