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 / test_huge.txt
Created October 5, 2015 21:19
A* navigation problelm
(1600,1200)
(0,0) (1346,260)
(18,50,330,918)
(46,960,184,172)
(220,1060,136,140)
(388,0,42,1178)
(246,984,156,56)
(500,938,194,262)
(606,166,402,622)
(1088,146,62,1028)
@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