|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ou.pacman.heuristic.PacmanPathFinding
public final class PacmanPathFinding
Class to house static methods for pac-man's pathfinding heuristic methods.
Constructor Summary | |
---|---|
PacmanPathFinding()
|
Method Summary | |
---|---|
static Direction |
aStar(GameBoard board)
Method to determine the direction a player should go using the aStar algorithm. |
static Direction |
greedyBestFirst(GameBoard board)
Method to determine the direction a player should go using the greedy best first search algorithm. |
static Direction |
pelletFinder(GameBoard board)
Check pacman's current location and shoot for the next pellet regardless of where the ghosts are. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacmanPathFinding()
Method Detail |
---|
public static Direction aStar(GameBoard board)
board
- - The board to traverse.
public static Direction greedyBestFirst(GameBoard board)
board
- - The board to traverse.
public static Direction pelletFinder(GameBoard board)
board
- - The game board
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |