Пример #1
0
 public CastleMove(Piece king, Position kingOrigin, Position kingDestination, Piece rook,
                   Position rookOrigin, Position rookDestination) : base(king, kingOrigin, kingDestination)
 {
     this.Rook            = PieceFactory.CopyPiece(rook);
     this.RookOrigin      = rookOrigin;
     this.RookDestination = rookDestination;
 }
Пример #2
0
 public CaptureMove(Piece moved, Position origin, Position destination, Piece captured) : base(moved, origin, destination)
 {
     this.Captured = PieceFactory.CopyPiece(captured);
 }