Commit Graph

27 Commits

Author SHA1 Message Date
Thomas Rubini
459c5fad8a
refactor check_username() to game_logic 2023-01-13 09:47:28 +01:00
7cd525f28b
Merge pull request #25 from ThomasRubini/js_client_side
Js client side
2023-01-11 13:26:11 +01:00
18e2a3f30b finished lobby 2023-01-11 11:44:52 +01:00
2282a5b91a lobby advancement 2023-01-11 11:02:04 +01:00
Thomas Rubini
e2846d342a
add channel API + @API decorator 2023-01-11 10:55:06 +01:00
Thomas Rubini
1c1b117869
add discord bot 2023-01-11 10:55:06 +01:00
fa6e81f529 SubmitGameData done 2023-01-09 17:10:39 +01:00
71f5ee54de added answer check 2023-01-09 14:20:18 +01:00
0e0e615414 added getNpcImage static 2023-01-09 12:02:02 +01:00
51e5ac5c3b added get png from api 2023-01-09 09:57:30 +01:00
59f9965925 Merge branch 'main' into game_logic 2023-01-08 16:24:43 +01:00
6127c86ae7 server side game logic and moved data_persistance 2023-01-08 16:20:19 +01:00
Thomas Rubini
fc059670f4
emit socket events on game start/join 2023-01-06 08:52:41 +01:00
Thomas Rubini
222a119a21
fix test that game cannot be started twice 2023-01-05 15:45:02 +01:00
Thomas Rubini
2f29aa48bc
prevent start from starting twice 2023-01-05 15:45:02 +01:00
Thomas Rubini
824190348d
check if username is already added to the game 2023-01-05 15:45:02 +01:00
Thomas Rubini
45dface44b
check if username is valid 2023-01-05 15:45:02 +01:00
Thomas Rubini
23ef34e4cf
replace "status" with "error" and "msg" in error codes 2023-01-05 15:45:02 +01:00
Thomas Rubini
096d324ba3
remove getGameInfo endpoint 2023-01-05 15:22:07 +01:00
Thomas Rubini
50459210e5
use flask sessions instead of jwt 2023-01-05 15:16:40 +01:00
e0ffdafa7d
Merge pull request #6 from ThomasRubini/server_401
Always return 200 for consistency
2022-12-01 10:54:30 +01:00
Thomas Rubini
e47063207c
Always return 200 for consistency 2022-12-01 10:52:30 +01:00
Thomas Rubini
cb529c558e
use request.values instead of request.args 2022-12-01 10:43:41 +01:00
Thomas Rubini
bc410e93a5
allow POST requests on the API 2022-12-01 10:35:12 +01:00
Thomas Rubini
5c9f01efad
Misplaced comment 2022-11-29 15:11:33 +01:00
Thomas Rubini
54785f04ee
endpoint /startGame + jwt_required decorator 2022-11-29 14:51:04 +01:00
Thomas Rubini
5c162dd4fb
refactor 2022-11-29 13:54:38 +01:00