maze-solver/main.py
Dan Anglin d1c3ca6658
feat: add maze generation functionality
Main feature:

- Added functionality to randomly generate a maze before the solver
  solves it.

Fixes:

- Add a public method in the Cell class called wall_exists() that
  returns true if a given cell wall exists (false otherwise).

Refactors:

- Added an enum type called CellWallLabel for labelling the four cell
  walls.
- Added a draw() function in the CellWall class to reduce repeated code.
- Move the custom exceptions to errors.py

Tests:

- Add tests for the custom exceptions.

CI:

- Added a workflow for Forgejo Actions.
2024-02-14 22:50:46 +00:00

14 lines
209 B
Python

from graphics import Window
from maze import Maze
def main():
window = Window(800, 800)
_ = Maze(10, 10, 30, 30, 20, 20, window)
window.wait_for_close()
if __name__ == "__main__":
main()