Add stockfish to chess

This commit is contained in:
jheaps
2025-07-03 13:20:53 -06:00
parent a541127f11
commit d799b88403
10 changed files with 381 additions and 75 deletions
+7 -1
View File
@@ -1,4 +1,6 @@
namespace JoshHeaps.Net.Models;
using JoshHeaps.Net.Services.Implementations;
namespace JoshHeaps.Net.Models;
public class GameState
{
@@ -39,6 +41,10 @@ public class GameState
public Guid WhitePlayerId { get; set; }
public Guid BlackPlayerId { get; set; }
public bool IsVsComputer { get; set; } = false;
public Stockfish? Computer { get; set; }
// optional: convenience
public bool IsOpen => !WhiteJoined || !BlackJoined;