Refactor GameRepository and GameManager architecture, introduce Player model, and update dependency registration in Program.cs.

This commit is contained in:
2026-02-28 23:06:54 +01:00
committed by Jonas
parent b967bd70eb
commit 0e7bfb7241
11 changed files with 96 additions and 27 deletions
+5 -3
View File
@@ -1,7 +1,9 @@
namespace API.Services.GameManager;
using API.Models.Game;
namespace API.Services.GameManager;
public interface IGameManager
{
public int CreateGame(string playerName);
public bool JoinGame(string playerName, int gameCode);
public int CreateGame(Coordinates gFs, Player player);
public bool JoinGame(Player playerName, int gameCode);
}