hpointu / awale

simple awale for playing on LAN, wip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple network awale

To create server and wait for opponent :

python awale.py

To join a game :

python awale.py <host>

Protocol : TCP

Message Structure as ASCII:

SIZE\n\nJSONDATA

Where SIZE is the ASCII length of JSONDATA (A number) and JSONDATA is a JSon Object with 2 attributes:

  • type: a string that could be :
    • info
    • game_state
    • play
    • error
  • message: can be any valid json object

About

simple awale for playing on LAN, wip


Languages

Language:Python 61.6%Language:C++ 33.5%Language:CMake 2.8%Language:R 2.1%