Opponent's username: change it to a free text field, should not be linked to a user
Score: It has to be an array of 2 numbers. ["hello"] or [1, 2, 3, 4] should not work. Also, int have to be between 0 and 5
AI: check the flag is_ai to save it as AI. If flag AI is true save the username to NULL
The opponent's username cannot be the same as the registered user.
Timestamp (Date + Time) : timestamp of when you got the POST request with the game result from the frontend (might look different that the example)
Game duration: format HH:MM:SS
Victories = 0 and losses = 0.
Game result API Player stats #24
Fixed:
Opponent's username: change it to a free text field, should not be linked to a user Score: It has to be an array of 2 numbers. ["hello"] or [1, 2, 3, 4] should not work. Also, int have to be between 0 and 5 AI: check the flag is_ai to save it as AI. If flag AI is true save the username to NULL The opponent's username cannot be the same as the registered user. Timestamp (Date + Time) : timestamp of when you got the POST request with the game result from the frontend (might look different that the example) Game duration: format HH:MM:SS Victories = 0 and losses = 0.