Add db for backup and memory happiness

This commit is contained in:
jheaps
2025-07-05 18:48:30 -06:00
parent 7a532e52e1
commit 9003d2c4dd
27 changed files with 2682 additions and 245 deletions
+1 -4
View File
@@ -47,12 +47,9 @@ public class GameState
public Guid BlackPlayerId { get; set; }
public bool IsVsComputer { get; set; } = false;
public PieceColor ComputerColor { get; set; } = PieceColor.Black; // default to black for computer
public int ComputerDifficulty { get; set; } = 20;
[JsonIgnore] // <-- exclude from JSON
[NotMapped] // <-- EF won't try to persist it either
public Stockfish? Computer { get; set; }
// optional: convenience
public bool IsOpen => !WhiteJoined || !BlackJoined;