A collection of tiny directors for Mistytown games.
066大逃杀行动提交与反馈工具
Make sure you have Python3 installed.
Install all dependencies in requirements.txt
and run python main.py
in a virtual env.
This server is based on Python3 and Flask framework.
main.py
: to start the server.
server.py
: defined all the routers.
action.py
: detailed logic of Battle Royale rules.
data.py
: definition of data structures, including roles
, places
and items
, saved in Python dict.
message.py
: all the logic about message and feedback between director and actors.
user.py
: registered users.
templates/*.html
: frontend Jinja2 templates.
All the data are hardcoded and saved in memory.
Persistent storage and initialization from JSON file.