using PathFinding; using System.Collections.Generic; namespace Gameboard.ShogiUI.BoardState.Pieces { public class Pawn : Piece { private static readonly List Moves = new(1) { new PathFinding.Move(Direction.Up) }; public Pawn(WhichPlayer owner) : base(WhichPiece.Pawn, owner) { moveSet = new MoveSet(this, Moves); promotedMoveSet = new MoveSet(this, GoldenGeneral.Moves); } public override Piece DeepClone() { var clone = new Pawn(Owner); if (IsPromoted) clone.Promote(); return clone; } } }