MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

machine_learning/astar.py:27–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 """
26
27 def __init__(self):
28 self.position = (0, 0)
29 self.parent = None
30 self.g = 0
31 self.h = 0
32 self.f = 0
33
34 """
35 Overrides equals method because otherwise cell assign will give

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected