, . , , . . 1 , x, y pacman. , 3 , . 3 , , pacman . - , :
((x,y),FALSE,FALSE,FALSE) -> state that indicates that pacman has not eat any food
((x,y),FALSE,TRUE,FALSE) -> state that indicates that pacman has eat only one food
((x,y),TRUE,TRUE,TRUE) -> this is the goal state
, . BFS ans A * . , , . , . .