before remove validation board
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user