Exemple #1
0
        public override List <BoardPosition> GetPossibleMoves(IChessItemModel[,] items, out List <bool> isJumpList, out List <bool> killPossibilityList)
        {
            Direction direction;

            switch (Side)
            {
            case ChessSide.white:
                direction = Direction.top;
                break;

            case ChessSide.black:
                direction = Direction.bottom;
                break;

            case ChessSide.red:
                direction = Direction.right;
                break;

            case ChessSide.green:
                direction = Direction.left;
                break;

            default:
                throw new System.NotImplementedException("GetPossibleMoves Not Implemented Completely!");
            }
            return(PossibleMovesFinder.GetPawnPossibleMoves(items, Side, Pos, true, Steps, false, direction, out isJumpList, out killPossibilityList));
        }
Exemple #2
0
 public override List <BoardPosition> GetPossibleMoves(IChessItemModel[,] items, out List <bool> isJumpList, out List <bool> killPossibilityList)
 {
     return(PossibleMovesFinder.GetPawnPossibleMoves(items, Side, Pos, true, Steps, true, direction, out isJumpList, out killPossibilityList));
 }