Skip to main content

Websocket server to interactively play the Apologies game

Project description

Apologies Server

pypi license wheel python docs coverage

Apologies Server is a Websocket server interface used to interactively play a multi-player game using the Apologies library. The Apologies library implements a game similar to the Sorry board game.

I originally developed this code in mid-2020 during COVID-enforced downtime, as part of an effort to write a UI to play the Apologies board game in a web browser. However, Javascript moves really fast, and by mid-2021, my UI implementation was already partially obsolete, and I abandoned work on it.

This code is still a reasonable example of how to build a Websocket server including a state machine to manage board game state. However, its main purpose was to support the process of building that web UI, so it's not designed or architected for production use. It doesn't really look like something I would write today, given the benefit of more experience with async design patterns in Python. But, it works.

See the documentation for notes about the public interface and the event model.

Prototype Code

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apologiesserver-0.2.2.tar.gz (89.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apologiesserver-0.2.2-py3-none-any.whl (44.5 kB view details)

Uploaded Python 3

File details

Details for the file apologiesserver-0.2.2.tar.gz.

File metadata

  • Download URL: apologiesserver-0.2.2.tar.gz
  • Upload date:
  • Size: 89.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for apologiesserver-0.2.2.tar.gz
Algorithm Hash digest
SHA256 710f791cd3eedf9d6c005a66a41c0b2bc13f86b6d007b7a5cf88a5409ebe7cb3
MD5 01ec9b5bc0efe3708920e059d3c960d4
BLAKE2b-256 176f33f90654ebf51007a51dbc3f2d3b406eae6dfee6ba0665347f9ea4f013e6

See more details on using hashes here.

File details

Details for the file apologiesserver-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for apologiesserver-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c61dad2af94730af4a059a143149b31f0ef758edc849b46e4b4696f83d91119
MD5 adb86e525a2c190bf303c420d36c9488
BLAKE2b-256 b4dd3a44e7d50236b9e58e4822594ba2b561c0d9e3b1f522075839747e51285c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page