Pathfinding!

My attempt at A*

This was my attempt at coding this as I was a newbie teacher back in 2016. I am quite proud of it - although I know you can do it in 5 minutes using vibe-coding now. There were a few bugs in it to start and I remember my Year 13s laughing at me when I showed it to them as it sometimes would go through walls and obstacles

Flash forward to 2026, and I gave the code to CGPT to ask for help. It helped me fix the obstacle wall problem, but then told me it wasn't really A* as it was just a greedy algorithm to decide next move> Gutted :(

Maybe one day I'll doa proper version of pathfinding!

Draw Boxes Start path finding!