219 Commits

Author SHA1 Message Date
Martin Berg Alstad
f0a701a2fd Added gameId to Game path 2023-07-20 18:26:41 +02:00
Martin Berg Alstad
35334f0308 State for map 2023-07-20 18:09:18 +02:00
Martin Berg Alstad
1db515d796 Json is being handled with camelCase 2023-07-20 18:06:30 +02:00
Martin Berg Alstad
0c9ba333ea Added createGame button 2023-07-20 16:14:27 +02:00
Martin Berg Alstad
bc0bfbea0f Created method to remove a player from a game 2023-07-20 15:00:03 +02:00
Martin Berg Alstad
5e21947870 Created simple login page, and User model 2023-07-20 14:47:13 +02:00
Martin Berg Alstad
745f292eee Reformat UserName to Username, Added DAL with admin login method 2023-07-19 23:25:54 +02:00
Martin Berg Alstad
8f4e8ed481 Switched Component type to React.FC type 2023-07-19 22:53:47 +02:00
Martin Berg Alstad
65b69a763f Added endpoint for creating and joining a game 2023-07-19 18:45:40 +02:00
Martin Berg Alstad
7e8dc44ce9 Ghost characters are saved in backend after each move 2023-07-19 17:09:47 +02:00
Martin Berg Alstad
23ee40c96d Refactored DiceCup to store the previous value 2023-07-19 16:19:51 +02:00
Martin Berg Alstad
767189821d Players can rejoin when refreshing window, changed Name to UserName 2023-07-19 16:03:43 +02:00
Martin Berg Alstad
01757f825e Tests, comments and createGame method 2023-07-18 18:19:54 +02:00
Martin Berg Alstad
c7bc473572 Split up methods in controllers, added tests for GameService, refactored GameGroup name to Game and directory Game to GameStuff 2023-07-18 17:09:27 +02:00
Martin Berg Alstad
fab3e3d13f Separated WebSocketService to another service 2023-07-18 14:12:53 +02:00
Martin Berg Alstad
ad0d8c7d0a Created a simple lobby containing all games 2023-07-18 13:50:46 +02:00
Martin Berg Alstad
ac8560e61c Game can only be started after at least 2 players have joined, moved dice below stats 2023-07-17 20:25:45 +02:00
Martin Berg Alstad
68fe8192aa Added modal to select character to steal from, Added button component 2023-07-17 13:10:33 +02:00
Martin Berg Alstad
cf195e8e43
Test update path 2023-07-16 20:55:24 +02:00
Martin Berg Alstad
8f71328c78
Test ls 2023-07-16 20:40:50 +02:00
Martin Berg Alstad
070623ec04
Fixed path 2023-07-16 20:29:30 +02:00
Martin Berg Alstad
2db095cc49
Changed cache-dependency-path 2023-07-16 20:28:27 +02:00
Martin Berg Alstad
2a42a2c8ad
Added defaults 2023-07-16 20:25:53 +02:00
Martin Berg Alstad
c3e3dd10e7
Fixed cache-dependency-path??? 2023-07-16 20:22:44 +02:00
Martin Berg Alstad
e993f7c4c7
Added cache dependency path 2023-07-16 20:21:03 +02:00
Martin Berg Alstad
13233ec7be Added path to setup 2023-07-16 20:14:15 +02:00
Martin Berg Alstad
ec73c7df65 Fixed ghosts can take pac-men and added more tests 2023-07-16 20:07:15 +02:00
Martin Berg Alstad
6ecb9515b9
Create node.js.yml CI 2023-07-16 19:03:27 +02:00
Martin Berg Alstad
e6d8648eff Set player to disconnected on disconnect, some minor refactoring, comments 2023-07-16 14:15:59 +02:00
Martin Berg Alstad
11ef229664 Fixed tests and added some more for new methods 2023-07-16 13:23:12 +02:00
Martin Berg Alstad
373f08609d Switch players after move, can only roll dice once, and other improvements 2023-07-16 12:10:53 +02:00
Martin Berg Alstad
8d8a606fb8 Fixed colours not showing 2023-07-15 19:55:38 +02:00
Martin Berg Alstad
ee5f48b1f9 Fixed not being able to pick up pellets 2023-07-15 15:09:32 +02:00
Martin Berg Alstad
e894aab4f4 Fixed moving in frontend, as well as a number of other things that previously broke 2023-07-15 14:55:16 +02:00
Martin Berg Alstad
969f3fcbc8 disabled state to button 2023-07-14 19:38:41 +02:00
Martin Berg Alstad
049d5e4aee Moved button to component and added a Waiting state for the button 2023-07-14 19:36:36 +02:00
Martin Berg Alstad
47196161ac Sets the spawn in the backend when player is created, and other fixes :p 2023-07-14 19:14:19 +02:00
Martin Berg Alstad
63502405e1 Fixed bug with WebSocketService sub 2023-07-13 18:48:17 +02:00
Martin Berg Alstad
41118035d2 Test for Run method in GameController 2023-07-13 18:06:18 +02:00
Martin Berg Alstad
0de20200f5 Merged interfaces to classes 2023-07-13 14:00:42 +02:00
Martin Berg Alstad
00d777d985 WebSocketService tests 2023-07-13 13:51:02 +02:00
Martin Berg Alstad
37b460b515 Testing of dices, and merged interfaces to class, and changed methods to properties 2023-07-12 21:49:49 +02:00
Martin Berg Alstad
0dc4a7b846 GameGroup implements IEnumerable, removed Getters from ActionService Properties 2023-07-12 21:33:52 +02:00
Martin Berg Alstad
ab52179b5a Fixed actionservice tests 2023-07-12 21:21:51 +02:00
Martin Berg Alstad
ea2f31b905 ActionService tests and Equality 2023-07-12 14:07:32 +02:00
Martin Berg Alstad
27d13caf5d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	.github/workflows/dotnet.yml
2023-07-11 21:28:56 +02:00
Martin Berg Alstad
51d929ce64 Revert "Moved tests to own job"
This reverts commit 8b010ed6914b2591b5fd42ed7403c823a4c1c226.
2023-07-11 21:28:19 +02:00
Martin Berg Alstad
957b62050a
Fixed test job? 2023-07-11 21:21:02 +02:00
Martin Berg Alstad
99fd2200fe Merge remote-tracking branch 'origin/master' 2023-07-11 21:08:44 +02:00
Martin Berg Alstad
8b010ed691
Moved tests to own job 2023-07-11 21:08:25 +02:00