Skip to content

Instantly share code, notes, and snippets.

View TripleExclam's full-sized avatar

Matt TripleExclam

View GitHub Profile
@TripleExclam
TripleExclam / matt_q3.py
Created August 16, 2021 10:44
COMP3702 Tutorial 3 solutions
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
@TripleExclam
TripleExclam / matt_q1_q2.py
Created August 16, 2021 10:42
Exercise 3.1 and 3.2 COMP3702
import sys
import heapq
import time
class GridWorld:
ACTIONS = ['U', 'D', 'L', 'R']
def __init__(self):
self.n_rows = 9
self.n_cols = 9