Skip to content

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Usage 🗝

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

      server gui jpg

  • 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
    • 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

Tests 🧪

The entire server.server.Server unit tests include within tests directory

Run instructions :

  • Install requirements:
    $ sudo pip3 install -r requirements.txt
  • Run tests using runner.sh
    $ ./runner.sh t