Skip to content

Instantly share code, notes, and snippets.

View iver56's full-sized avatar
🎯
Writing Python code every day

Iver Jordal iver56

🎯
Writing Python code every day
  • Nomono
  • Trondheim, Norway
View GitHub Profile
@iver56
iver56 / gfx
Last active September 26, 2015 21:47
IT3105: Graphics class for visualizing a 2D grid. Useful when implementing the A* algorithm. Uses pygame.
import sys, pygame
pygame.init()
class Gfx(object):
"""
This class takes care of drawing the state of the search to a window using pygame
"""
size = width, height = 960, 540