Closed rhemon closed 4 years ago
In the Game class I could make the scoring method return true or false depending if the player got 0 or more points. Then the server would send a message with true or false or an if statement sending a message "Try again"
Yeah. or it could just simply be "" and "new category", so if empty it will mean the drawing is wrong. otherwise its the new category to draw
since it doesnt seem efficient to break into two requests. one for True/False one for new category name
Dont close it yet. fronte nd is not fixed yet
For now its static, but it should display the received category to draw to player. And after the player draws it it should take the respond and update a new category if it was done. If not, it should show a message saying "try again" or sth.
This also needs to be fixed on the backend side.