Revert "Add db for backup and memory happiness"
This reverts commit 9003d2c4dd.
This commit is contained in:
@@ -47,9 +47,12 @@ 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user