Skip to content

Game server for hosting multiple two-player, turn-based games

Notifications You must be signed in to change notification settings

jinchung/gameserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server (socket) logic is under serverhandler.py

This is separate from the controller that manages game sessions and users (gameinterface.py)

To start:

python serverhandler.py

On a separate client, connect to port 8888 Messages are in json format: For socket s: s.send("{'type': 'new', 'gameId': None, 'gameType': 'tictactoe', 'move': None}") s.send("{'type': 'move', 'gameId': 1, 'gameType': 'tictactoe', 'move': '1 1'}")

type: new, move gameId: sent back from server once game is created move: x and y coordinates sent as 'x y' gameType: tictactoe

About

Game server for hosting multiple two-player, turn-based games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages