it fricken works!
This commit is contained in:
@@ -28,8 +28,7 @@ namespace Gameboard.ShogiUI.BoardState.Pieces
|
||||
if (IsPromoted) clone.Promote();
|
||||
return clone;
|
||||
}
|
||||
public override ICollection<Path> GetPaths() => Owner == WhichPlayer.Player1
|
||||
? MoveSet
|
||||
: MoveSet.Select(_ => new Path(Vector2.Negate(_.Direction), _.Distance)).ToList();
|
||||
// The move set for a King is the same regardless of orientation.
|
||||
public override ICollection<Path> GetPaths() => MoveSet;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user