# Game Server - Containerized Method A game server to provide simple games, intended for testing of strategies, AI, and general playing around. As such, do not expect strong anti-cheat mechanisms, or really much of anything other than an impartial game server that can run separately from the client code. ## Present State Dreaming it up. ## Architecture All of this is brand new to me, so expect mistakes and amateur moves. Giving [FastAPI](https://fastapi.tiangolo.com/) a shot. FastAPI inherits [starlette](https://www.starlette.io/), so look into that functionality some day, too. Expects a redis container/cluster somewhere to store data. ### API Notes At this point, almost all operations use POST ### Notes for myself FastAPI recommendation is "if your \[function\] doesn't have to communicate with anything else and wait for it to respond, use `async def` instead of `def`". Auto Generated API docs are [here](http://127.0.0.1:8000/docs) Schema is [here](http://127.0.0.1:8000/openapi.json) For curl, you may want to follow redirects: ``` curl --location http://127.0.0.1:8000/example ``` Request bodies use [pydantic](https://docs.pydantic.dev/)