Пример #1
0
        public void MovePiece(ref List <IGameField> fields, int pieceTurn, int dieRoll)
        {
            IGamePiece piece = GetPiece(pieceTurn);

            IGameField currentField = fields[piece.Position]; // Used so we can reset the earlier used position
            IGameField fieldToMove  = fields[(piece.Position + dieRoll)];

            currentField.RemovePiece(piece);
        }