This commit is contained in:
2021-12-29 22:11:49 -06:00
parent 9ec91615a3
commit 499e480851
4 changed files with 57 additions and 52 deletions

View File

@@ -19,7 +19,7 @@ namespace Shogi.Domain
public List<Piece> Player1Hand { get; }
public List<Piece> Player2Hand { get; }
public List<Move> MoveHistory { get; }
public WhichPlayer WhoseTurn => MoveHistory.Count % 2 == 0 ? WhichPlayer.Player1 : WhichPlayer.Player2;
public WhichPlayer WhoseTurn { get; set; }
public WhichPlayer? InCheck { get; set; }
public bool IsCheckmate { get; set; }