20 lines
398 B
Python
20 lines
398 B
Python
|
from settings import block_size, screen_width, directions
|
||
|
|
||
|
|
||
|
class Node:
|
||
|
def __init__(self, state, parent=None, action=None):
|
||
|
self.state = state
|
||
|
self.parent = parent
|
||
|
self.action = action
|
||
|
|
||
|
class BFS:
|
||
|
def __init__(self):
|
||
|
self.fringe = []
|
||
|
self.explored = []
|
||
|
|
||
|
def successor(self, state):
|
||
|
pass
|
||
|
|
||
|
def search(self):
|
||
|
pass
|