Goal

Write a sketch, a front-end and a back-end to play to the same game as in µC exercise 2.

The front allows to start the game, by specifying the name of a player, and the IP address of the µC. It sends a request to the API that relays this request to the µC. When the game session is done, i.e. when the player has tapped on the piezo, the µC sends the elapsed time to the API that store this time in DB.

The front also allows to get the stats of a given player, and to display a scoreboard of all players.

Solution

archive of the front-end : [ front-game.tgz ]

archive of the back-end : [ api-game.tgz ]

esp8266 sketch : [ gameapp.ino ]