This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matt_q1_q2 import * | |
class EightPuzzle: | |
ACTIONS = ['U', 'D', 'L', 'R'] | |
def __init__(self, init_state, goal_state): | |
self.size = 3 | |
self.init_state = init_state | |
self.goal_state = goal_state |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import heapq | |
import time | |
class GridWorld: | |
ACTIONS = ['U', 'D', 'L', 'R'] | |
def __init__(self): | |
self.n_rows = 9 | |
self.n_cols = 9 |