The Great Elf Game adapted for Python North East - client & server
The annual Christmas Elves game server and client
Python North East December brings you the Christmas Elf Challenge. Your task, should you choose to accept it, is to collect the most
Running the Server
The server is self-contained with an SQLite database, so just install the requirements:
pip install -r requirements.txt
We’re using Django Channels, so running the server is as easy as:
python server/manage.py runserver
To interact with the server session, we use a simple REST API to send new data into the server. The full API docs can be found by running a server and navigating to /docs/.
Starting a New Session
To start a new session, send a POST request with a name variable form-encoded to https://<host>/sessions/:
curl https://example.com/sessions/ -X POST -d player_name="Scott"
and you’ll get a simple JSON object back with a session URL that you post your turns against.
Taking a Turn
To take a turn, make a POST request against the day endpoint of a session.
Instructions and Rules
See the attached Google Doc for the rules and any of the latest tips and tricks.
Release history Release notifications | RSS feed
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pyne_xmas_elves-0.5.1-py3.5.egg (8.8 kB)||File type Egg||Python version 3.5||Upload date||Hashes View|
|Filename, size pyne_xmas_elves-0.5.1-py3-none-any.whl (6.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size pyne-xmas-elves-0.5.1.tar.gz (5.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for pyne_xmas_elves-0.5.1-py3-none-any.whl