Dan Anglin
1b0f044834
Some checks failed
test / test (pull_request) Failing after 6s
This commit adds a simple side panel to allow users to interact with the application. The side panel allows the user to: - Generate and regenerate mazes - Choose between the searching algorithms - Choose whether or not to add randomness to the algorithm - Run and re-run the simulation
18 lines
349 B
Python
18 lines
349 B
Python
class Point:
|
|
"""
|
|
Point represents the position of a point.
|
|
"""
|
|
|
|
def __init__(self, x: int, y: int):
|
|
self.x = x
|
|
self.y = y
|
|
|
|
|
|
class Line:
|
|
"""
|
|
Line represents a graphical line.
|
|
"""
|
|
|
|
def __init__(self, point_a: Point, point_b: Point) -> None:
|
|
self.point_a = point_a
|
|
self.point_b = point_b
|