{"repo":"feberts/python-game-server","free":true,"listed":false,"github":"https://github.com/feberts/python-game-server","clone":"git clone https://github.com/feberts/python-game-server.git","description":"A lightweight server and framework for turn-based multiplayer games","language":"Python","stars":25,"topics":["game-server","multiplayer","python","board-games","game-framework","turn-based","lightweight","simple","education"],"license":"GPL-3.0","category":"game-templates","readme_excerpt":"Python game server A lightweight server and framework for turn-based multiplayer games. Basic Python skills are sufficient to implement clients and add new games to the server. Overview Features - a framework that allows new games to be added easily - a uniform yet flexible API for all games - multiple parallel game sessions - you can join a specific session - or auto-join the next non-full session Use cases - development of turn-based multiplayer games such as board or card games - programming courses in which students implement clients or new games Quick start To try this on your machine 1. start the server ( server/game server.py ) 2. then run two clients ( client/tictactoe client.py ) The only requirement is a regular Python installation. Implementing clients Module game server api provides an API for communicating with the server. It allows you to - start or join a game session - submit moves - retrieve the game state - restart a game within the current session This is what a simple game loop might look like (view full example here): The API module includes detailed documentation. You can also take a look at the demo clients and the Wiki. Adding new games Adding a new game is easy. You derive from a base class and override its methods: 1. Create a new module in server/games/ . 2. Implement a class that is derived from AbstractGame . 3. Override the base class's methods. 4. Add the new class to the list of games ( server/games list.py ). To make things even easier, you ca","default_branch":null,"files":null,"tree":[],"storefront":"/r/feberts","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/feberts/python-game-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}