常用方法
常用方法
常用方法
常用方法
public void UndoMovement(Position origin, Position destiny, Chessman caughtChessman) { Chessman piece = Board.RemoveChessPiece(destiny); piece.DecreasePieceMoves(); if (caughtChessman != null) { Board.PutChessPiece(caughtChessman, destiny); CapturedChessman.Remove(caughtChessman); } Board.PutChessPiece(piece, origin); }