I really enjoyed this post by Paul Hebert on Generating Random Mazes with JavaScript, I liked how he talked through his thinking process and constraints:
https://cloudfour.com/thinks/generating-random-mazes-with-javascript/
https://cloudfour.com/thinks/generating-random-mazes-with-javascript/
Comments
It is so easy to follow, implement, and understand to tweak it.
Playing with JS to create games is FUN.
Here's a video I did combining two articles: maze generation (via Cellular Automata) and collision detection (I suggest turning on sound for this):
https://www.youtube.com/watch?v=SSMuu-F-OBo
https://www.fxhash.xyz/generative/13984
Video ends with a few seconds of gameplay, just for fun!