Skip to content

Instantly share code, notes, and snippets.

Avatar

Pablo Fernandez pablofernandezorg

  • Developer @ JPMorgan Chase
  • Los Angeles, CA
View GitHub Profile
@pablofernandezorg
pablofernandezorg / astar.py
Created Sep 20, 2016 — forked from jamiees2/astar.py
A* Algorithm implementation in python.
View astar.py
# Enter your code here. Read input from STDIN. Print output to STDOUT
class Node:
def __init__(self,value,point):
self.value = value
self.point = point
self.parent = None
self.H = 0
self.G = 0
def move_cost(self,other):
return 0 if self.value == '.' else 1
You can’t perform that action at this time.