Commit Graph

414 Commits

Author SHA1 Message Date
Thomas Rubini
1c1b117869
add discord bot 2023-01-11 10:55:06 +01:00
3728b2986f fixed copy clipboard 2023-01-11 09:20:47 +01:00
6059172c95 join game in js 2023-01-11 08:59:53 +01:00
1addd381a3 startgame in js 2023-01-10 13:34:47 +01:00
86ee9c3863
Merge pull request #23 from ThomasRubini/database_data
added missing questions
2023-01-10 10:04:05 +01:00
d16593a564 added missing questions 2023-01-10 09:57:48 +01:00
f69c7be1b6
Merge pull request #22 from ThomasRubini/reactionMap
Reaction map
2023-01-09 17:12:59 +01:00
fa6e81f529 SubmitGameData done 2023-01-09 17:10:39 +01:00
AudricV
d2868a23d8
Merge pull request #21 from ThomasRubini/client_lobby_room_page
[Client] Add lobby page
2023-01-09 16:33:59 +01:00
AudricV
45899fb4a2
[Client] Add alert to challenge mode 2023-01-09 16:26:51 +01:00
AudricV
2c92fba477
[Client] Disable text decoration of the room code text 2023-01-09 16:26:51 +01:00
AudricV
a8c4d791c9
[Client] Add ability to copy game room link to clipboard
Also rename Invite your friends button to Copy invitation link and open the
room code link in a new tab by default.
2023-01-09 16:26:50 +01:00
AudricV
a539867a24
[Client] Add validation check of the name entered in the join room view
Also improve TODO and FIXME messages a bit.
2023-01-09 16:26:50 +01:00
AudricV
1abc784ad2
[Client] Fix width of the game username input on the start page
Also remove its unneeded margins.
2023-01-09 16:26:50 +01:00
AudricV
3049e22b25
Add lobby script to its HTML page 2023-01-09 16:26:50 +01:00
AudricV
d47d97bb66
[Client] Add initial lobby interactions
- Check challenge mode input validity
- Add logic to display correct elements dependending on whether the user joined
the room and is the room owner
2023-01-09 16:26:49 +01:00
AudricV
09ee0a616e
[Client] Add invalid rounds count CSS rule for challenge mode 2023-01-09 16:26:49 +01:00
AudricV
fe88154d57
[Client] Do a few changes to the lobby template
- Add an ID to start buttons;
- Add an invalid input message for the challenge mode;
- Turn the room code into a link.
2023-01-09 16:26:49 +01:00
AudricV
1e7f130081
[Client] Add game room style
Co-authored-by: Cazals Mathias <mathiascazals@users.noreply.github.com>
2023-01-09 16:26:49 +01:00
AudricV
01ac22eb12
[Client] Add join room view 2023-01-09 16:26:49 +01:00
AudricV
6f78b3fc14
[Client] Add lobby room view
Co-authored-by: Cazals Mathias <mathiascazals@users.noreply.github.com>
2023-01-09 16:26:36 +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
AudricV
298d0e3e34
[Client] Move theme setting to the start page
The theme setting is only used on this page right now, so it makes no sense to
include in other pages.
2023-01-09 10:59:47 +01:00
3ce9fea232
Merge pull request #20 from ThomasRubini/get_images
added get png from api
2023-01-09 09:58:53 +01:00
51e5ac5c3b added get png from api 2023-01-09 09:57:30 +01:00
8720dc39f3
Merge pull request #19 from ThomasRubini/game_logic
server side game logic
2023-01-08 16:32:51 +01:00
47dd6a2bc8 added pymysql in requirements 2023-01-08 16:29:48 +01:00
8db1c4c618 added sqlalchemy in requirements 2023-01-08 16:28:28 +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
5ddb127019
Merge pull request #18 from ThomasRubini/socket 2023-01-08 12:12:30 +01:00
171740362d
Merge pull request #17 from ThomasRubini/server_SQL
SQL Data Persistance
2023-01-07 17:15:22 +01:00
a07e8270e3 slight data tables refactor + initial db data 2023-01-07 17:09:08 +01:00
cb38bf9408 added to string to missing classes 2023-01-06 09:20:08 +01:00
Thomas Rubini
fc059670f4
emit socket events on game start/join 2023-01-06 08:52:41 +01:00
4e43ba853e fixed typo + data table drop at script launch 2023-01-06 08:52:24 +01:00
8033002eea changed architecture 2023-01-06 08:33:51 +01:00
853dafca92 renamed file 2023-01-06 08:33:51 +01:00
Thomas Rubini
2459d74df0 fix test that game cannot be started twice 2023-01-06 08:33:51 +01:00
Thomas Rubini
8c6128d45e prevent start from starting twice 2023-01-06 08:33:51 +01:00
Thomas Rubini
ca18e58e9d do not collect exception class 2023-01-06 08:33:51 +01:00
Thomas Rubini
d624ed9918 replace more asserts with exception checks in tests 2023-01-06 08:33:51 +01:00
Thomas Rubini
8550041345 check if username is already added to the game 2023-01-06 08:33:51 +01:00
Thomas Rubini
c670cd36e1 check if username is alphanumeric 2023-01-06 08:33:51 +01:00
Thomas Rubini
178894da06 use a custom error class in tests 2023-01-06 08:33:51 +01:00
Thomas Rubini
94ffdb10a1 update tests to detect exceptions 2023-01-06 08:33:51 +01:00
Thomas Rubini
b9f6b3245e check if username is valid 2023-01-06 08:33:51 +01:00
Thomas Rubini
0efba544bc remove prints in tests 2023-01-06 08:33:51 +01:00
Thomas Rubini
1ccabac77e replace "status" with "error" and "msg" in error codes 2023-01-06 08:33:51 +01:00