Пример #1
0
        public List <string> GetNextPossibleMoves(string fromCellPostion)
        {
            List <string>      possibleMoves      = new List <string>();
            HorizantalMovement horizantalMovement = new HorizantalMovement();

            possibleMoves.AddRange(horizantalMovement.GetPossibleMoves(fromCellPostion, _stepLimit));

            VerticalMovement verticalMovement = new VerticalMovement();

            possibleMoves.AddRange(verticalMovement.GetPossibleMoves(fromCellPostion, _stepLimit));

            DiagonalMovement diagonalMovement = new DiagonalMovement();

            possibleMoves.AddRange(diagonalMovement.GetPossibleMoves(fromCellPostion, _stepLimit));
            return(possibleMoves);
        }
Пример #2
0
        public List <string> GetNextPossibleMoves(string fromCellPostion)
        {
            DiagonalMovement diagonalMovement = new DiagonalMovement();

            return(diagonalMovement.GetPossibleMoves(fromCellPostion, _stepLimit));
        }