The Great Elf Game adapted for Python North East - client & server
Project description
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
Installing Dependencies
The server is self-contained with an SQLite database, so just install the requirements:
pip install -r requirements.txt
Running
We’re using Django Channels, so running the server is as easy as:
python server/manage.py runserver
The API
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.
Creating Clients
Instructions and Rules
See the attached Google Doc for the rules and any of the latest tips and tricks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyne_xmas_elves-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dba2e86ecca951cd3243f161ec1235791d1592688896bae992750350c92218ec |
|
MD5 | e8acc85408085568a196dd124a4855f2 |
|
BLAKE2b-256 | a0335f21841e60890d0c311cecbec55ed4537d96cb47179bf7ed7cc0a216e921 |