MCPcopy Create free account

hub / github.com/ForrestKnight/SokobanSolver / functions

Functions53 in github.com/ForrestKnight/SokobanSolver

↓ 11 callersMethodequals
(Object obj)
src/BoardState.java:224
↓ 8 callersMethodpointHas
Checks if a row/col pair has a certain bitfield @param row the board row @param col the board column @param field the bitfield to check @return True i
src/BoardState.java:255
↓ 7 callersMethodgetCost
Gets the current state's cost @return the current state's cost
src/BoardState.java:180
↓ 4 callersMethodaddIfValid
(ArrayList<BoardState> moves, Point direction)
src/AbstractSolver.java:144
↓ 4 callersMethodsetCost
Sets the current state's cost @param cost the current state's cost
src/BoardState.java:172
↓ 4 callersMethodtoggleField
Toggles the bitfield with a field. @param bitfield the bitfield to toggle @param field the field to toggle @return the new, toggled bitfield
src/BoardState.java:275
↓ 3 callersMethodgetDirectionTaken
Gets the direction that the player made to get to the boardstate @return the direction that the player made to get to the boardstate
src/BoardState.java:164
↓ 3 callersMethodscore
(BoardState state)
src/Heuristic.java:11
↓ 2 callersMethodgetBoxes
()
src/BoardState.java:188
↓ 2 callersMethodgetFringeLength
()
src/AbstractSolver.java:132
↓ 2 callersMethodgetGoals
()
src/BoardState.java:184
↓ 2 callersMethodgetPreviouslySeen
()
src/AbstractSolver.java:140
↓ 2 callersMethodgetVisitedLength
()
src/AbstractSolver.java:128
↓ 1 callersMethodbacktrackMoves
Backtracks through the search to find the move sequence @param finalState the final, goal state @return the Sokoban solution move sequence
src/AbstractSolver.java:94
↓ 1 callersMethodcanMove
Returns whether or not the player can move in a certain direction @param direction the row/col direction @return True if player can move, false otherw
src/BoardState.java:75
↓ 1 callersMethoddirectionToChar
Point direction to character mapping for search output @param direction the direction to translate @return the corresponding character mapping
src/Direction.java:20
↓ 1 callersMethodgetElapsedTimeMillis
()
src/AbstractSolver.java:124
↓ 1 callersMethodgetManhattanDistance
(Point p1, Point p2)
src/ManhattanHeuristic.java:35
↓ 1 callersMethodgetMove
Returns the new BoardState after moving a certain direction @param direction the direction to move @return the new BoardState @pre must be called only
src/BoardState.java:108
↓ 1 callersMethodgetNodesExplored
()
src/AbstractSolver.java:136
↓ 1 callersMethodgetValidMoves
Returns the valid moves from the current state. @return the valid moves from the current state.
src/AbstractSolver.java:80
↓ 1 callersMethodisSolved
()
src/BoardState.java:61
↓ 1 callersMethodnextMoveHas
Returns true if the next move has the input bitfield. False otherwise. @param field the next move's bitfield check @return True if the next move has t
src/BoardState.java:147
↓ 1 callersMethodparseArguments
(String[] args)
src/SokobanSolver.java:14
↓ 1 callersMethodparseBoardInput
Parses a Sokoban text file into a Board object @param boardInput the Sokoban text file @return the Board state object @throws IOException if the Sokob
src/BoardState.java:285
↓ 1 callersMethodsearch
Searches the Sokoban puzzle for solution and returns the move sequence @return the Sokoban solution move sequence @throws NoSolutionException if no so
src/AbstractSolver.java:41
↓ 1 callersMethodsearchFunction
Search function @param validMoves list of valid movies
src/AbstractSolver.java:74
↓ 1 callersMethodsearchStart
Initialization before the search
src/AbstractSolver.java:66
↓ 1 callersMethodstartTimer
()
src/AbstractSolver.java:115
↓ 1 callersMethodstopTimer
()
src/AbstractSolver.java:120
↓ 1 callersMethodtoString
()
src/BoardState.java:202
↓ 1 callersMethoduniformCostFunction
(BoardState state, int baseCost)
src/UniformCostSolver.java:24
MethodAStarSolver
(BoardState initialBoard)
src/AStarSolver.java:8
MethodAbstractSolver
(BoardState initialState)
src/AbstractSolver.java:28
MethodBFSSolver
(BoardState initialState)
src/BFSSolver.java:10
MethodBoardState
(byte[][] board, Point player, Set<Point> goals, Set<Point> boxes)
src/BoardState.java:46
MethodDFSSolver
(BoardState initialState)
src/DFSSolver.java:9
MethodDirection
()
src/Direction.java:13
MethodGreedyBFSSolver
(BoardState initialState)
src/GreedyBFSSolver.java:10
MethodNoSolutionException
()
src/NoSolutionException.java:2
MethodUniformCostSolver
(BoardState initialState)
src/UniformCostSolver.java:10
MethodcompareTo
(BoardState other)
src/BoardState.java:192
MethodgetBoard
Gets the byte board representation used for search hashing @return the byte board representation
src/BoardState.java:156
MethodhashCode
()
src/BoardState.java:214
Methodmain
@param args
src/SokobanMain.java:11
Methodscore
(BoardState state)
src/ManhattanHeuristic.java:8
Methodscore
(BoardState state)
src/BoxGoalHeuristic.java:7
MethodsearchFunction
(ArrayList<BoardState> moves)
src/UniformCostSolver.java:15
MethodsearchFunction
(ArrayList<BoardState> validMoves)
src/BFSSolver.java:15
MethodsearchFunction
(ArrayList<BoardState> validMoves)
src/AStarSolver.java:18
MethodsearchFunction
(ArrayList<BoardState> validMoves)
src/GreedyBFSSolver.java:26
MethodsearchFunction
(ArrayList<BoardState> validMoves)
src/DFSSolver.java:14
MethodsearchStart
()
src/GreedyBFSSolver.java:20