before remove validation board

This commit is contained in:
2021-02-25 19:55:43 -06:00
parent f644795cd3
commit 640db4f4a2
8 changed files with 172 additions and 58 deletions

View File

@@ -33,6 +33,14 @@ namespace Gameboard.ShogiUI.BoardState
_ => " ? ",
};
public bool IsRanged => WhichPiece switch
{
WhichPiece.Bishop => true,
WhichPiece.Rook => true,
WhichPiece.Lance => !IsPromoted,
_ => false,
};
public void ToggleOwnership()
{
Owner = Owner == WhichPlayer.Player1