This commit is contained in:
2024-10-31 18:40:12 -05:00
parent a507212551
commit 09587b2f4d
6 changed files with 44 additions and 22 deletions

View File

@@ -1,14 +1,14 @@
using System;
using System.Collections.Generic;
namespace Shogi.Contracts.Types
namespace Shogi.Contracts.Types;
public class BoardState
{
public class BoardState
{
public Dictionary<string, Piece?> Board { get; set; } = new Dictionary<string, Piece?>();
public IReadOnlyCollection<Piece> Player1Hand { get; set; } = Array.Empty<Piece>();
public IReadOnlyCollection<Piece> Player2Hand { get; set; } = Array.Empty<Piece>();
public WhichPlayer? PlayerInCheck { get; set; }
public WhichPlayer WhoseTurn { get; set; }
}
public Dictionary<string, Piece?> Board { get; set; } = new Dictionary<string, Piece?>();
public IReadOnlyCollection<Piece> Player1Hand { get; set; } = Array.Empty<Piece>();
public IReadOnlyCollection<Piece> Player2Hand { get; set; } = Array.Empty<Piece>();
public WhichPlayer? PlayerInCheck { get; set; }
public WhichPlayer WhoseTurn { get; set; }
public WhichPlayer? Victor { get; set; }
}