akolgano / ft_transcendence

ft_transcendence 42 school
0 stars 0 forks source link

Issue #24 fix #38

Closed akolgano closed 1 week ago

akolgano commented 1 week ago

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.

akolgano commented 1 week ago

Fixed everything except TOURNAMENTS part. Read me needs to be updated (CURLs)