void function ( ) { while ( sol . size ( ) == 0 ) { generateValidMaze ( ) ; findSolution ( ) ; } }
generate method called to generate and searching for solution and guarantee find a maze with solution concode_field_sep Point current concode_elem_sep Node previous concode_elem_sep Point machine concode_elem_sep int[] directionJ concode_elem_sep int width concode_elem_sep Vector<Vector<Point>> sol concode_elem_sep int[][] maze concode_elem_sep Point mydesk concode_elem_sep int height concode_elem_sep int[] directionI concode_elem_sep double occupiedPercent concode_field_sep int generateRandomJ concode_elem_sep void addSolution concode_elem_sep int generateRandomI concode_elem_sep boolean canPut concode_elem_sep String printMaze concode_elem_sep boolean validPosition concode_elem_sep String printSolution concode_elem_sep void findSolution concode_elem_sep void generateValidMaze concode_elem_sep void placeMyDesk concode_elem_sep int generateRandomDirection concode_elem_sep void placeMachine concode_elem_sep boolean edgePoint