cf-rps

Rock, Paper, Scissors game to demonstrate Cloud Foundry development concepts and service integrations

View the Project on GitHub

v0.0

20170120: Instant gameplay available on PUT route

To run locally, with debugging

$ export FLASK_DEBUG=1
$ python cf-rps.py

To demonstrate the APIs

[GET] Show the homepage

Browse to http://localhost:8088/

[PUT] Instant gameplay

$ curl -X PUT http://localhost:8088/games/rock
{
"game_id": null,
"match_id": null,
"plays": {
    "computer": "rock",
    "person": "rock"
},
"status": "Tie game!",
"validPlays": [
    "rock",
    "paper",
    "scissors"
]
}

Some references