示例#1
0
        public Chessman ExecuteMovement(Position origin, Position destiny)
        {
            Chessman chessman = Board.RemoveChessPiece(origin);

            chessman.IncreasePieceMoves();
            Chessman caughtChessman = Board.RemoveChessPiece(destiny);

            Board.PutChessPiece(chessman, destiny);
            if (caughtChessman != null)
            {
                CapturedChessman.Add(caughtChessman);
            }
            return(caughtChessman);
        }