TABIT PROGRAMMING EXAM

Board game simulation

You are provided with a working game engine, running as a spring boot microservice.
The REST API for this mircoservice is documented here: API

Please develop a frontend javascript application to visualize and play the game against this microservice.
The frontend framework can be: Angular, React or Vue.js. Choose one and good luck!




Short explanation of the API endpoints:
The frontend framework can be: Angular, React or Vue.js. Choose one and good luck!

Order API Endpoint Explanation Return Value
1 /start Call once at the beginning of a new game String (UUID); represents the game id
2 /players Call once to initiate a given game (identified by the game id) with the number of players chosen by the user Entity: GameSituation (as described under: API)
3 /next Call repeatedly: This will trigger each game move. Every time the player who's turn it is throws the dice, this endpoint is called to transfer the thrown dice number to the game engine to calculated the new game situation Entity: GameSituation (as described under: API)