Add stockfish to chess
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user