Py-lander is a game that is being written in Python with PyGame - check out: py-lander
It's just a simple server to register the players' score.
-
/player/new => : A route to get a nickname. Using random number while I'm trying create a nickname db...maybe using a function to generate random starship names.
-
/player/<nick> => : A route to get info about one player (filter by nickname).
-
/player/list => : A route to list all players with detailed info. (score, fuel and etc)
-
/player/save_score => : A route to save the score.
This app was written using Python3 (3.4.2), Flask, SQLAlchemy (and Flask-SQLAlchemy) and SQLite3. There is a version deployed on heroku (using gunicorn):
pylander-score-server.herokuapp.com
- Clone this repo:
git clone https://github.com/lucasdnd/pylander-score-server
- Install the dependencies:
pip install -r pylander-score-server/requirements.txt
- Execute the run.py:
python run.py
Or you can just deploy it on heroku: