38 Commits

Author SHA1 Message Date
82923a311e
👍 Updated .NET to 9 and C# to 13, comments 2025-01-14 19:50:50 +01:00
Martin Berg Alstad
3e424a127e Updated build target to dotnet 12. Fixed failed tests and runtime failures 2023-12-10 15:39:26 +01:00
martin
9991bac6fa Updated dependencies. Use new array initializer in C#. Added comments to alot of methods and classes 2023-12-06 23:43:21 +01:00
martin
2520a9ed94 Updated dependencies and project to C# 12 Added primary constructors and many other refactorings 2023-11-18 23:47:55 +01:00
martin
57c046fc77 Updated dependencies. Added login info to README 2023-10-28 12:38:50 +02:00
martin
a8fe82dd50 Refactored some tests, added IClonable to Player 2023-10-21 12:28:09 +02:00
martin
8a3dfb058c Removed GameService.AddPlayer and it's usages. Updated tests, added tests for IsGameStarted 2023-08-27 13:21:54 +02:00
martin
d299176a1e Cleaned up error handling in backend, all error should throw exception 2023-08-27 12:39:23 +02:00
martin
5ee2d99d42 Refactored setPlayerInfo to joinGame and some other refactoring and comments 2023-08-05 23:32:25 +02:00
martin
89d2935323 Fixed test, deprecated method, and changes it's uses 2023-07-31 22:19:55 +02:00
Martin Berg Alstad
12b40702c8 Refactored box to use number instead of list of objects 2023-07-22 21:20:30 +02:00
Martin Berg Alstad
7af502f570 fixed state not updating when joining from lobby 2023-07-20 22:56:35 +02:00
Martin Berg Alstad
1db515d796 Json is being handled with camelCase 2023-07-20 18:06:30 +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
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
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
ee5f48b1f9 Fixed not being able to pick up pellets 2023-07-15 15:09:32 +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
949c10f9f3 Started with ActionService tests 2023-07-11 20:58:22 +02:00
Martin Berg Alstad
dfd8bbfc10 Added check to see if all players are ready before setting to inGame 2023-07-11 14:31:50 +02:00
Martin Berg Alstad
5db0af5841 GameGroup tests 2023-07-11 14:23:41 +02:00
martin
31196886fd Tests, finished for extensions 2023-07-09 19:58:32 +02:00