|
|
One programming project I wanted to write, back in 1973, was a program written in BASIC to generate mazes and print them out on an ASC-33 teletype. The idea certainly wasn't original. I got the idea from running someone else's existing maze program. I just didn't have the source code and I wondered how it worked. I also didn't have the kinds of fancy graphics capabilities of today's computers, so the output had to be in ASCII, but I enjoyed figuring out how to generate mazes, writing the program, and working through the mazes it generated. It's getting close to 30 years since then (okay, so now it's more than 30 years) and it's time I wrote something down about it. It's one of those programs that can be a satisfying experience for all programmers, novice or experienced. It's not so complex that a novice would get swamped out and it has enough interesting features that keep it from being entirely trivial for a more experienced programmer. And others can enjoy the results, too. Getting StartedI've written up some short pages designed to be read, sequentially. They are connected to this page. In addition, I've also provided some finished programs for you to try out and look at. All source code is provided. Hopefully, you will find both the pages and the programs enjoyable. Good luck! If you click on "up" above to get to the parent page, you can find links for getting QBASIC, if you don't already have it, and some Quick BASIC compilers. (By the way, the terse descriptions below will carry somewhat more meaning if you read the web pages I've written on making mazes.) Here are the files:
All source code is provided with these programs. I believe they will all run in the free version of QBASIC and they should all run in the various compiler versions, as well. Some of above programs also illustrate how to access the mouse driver, from QBASIC.
Feel free to email me. Last updated: Wednesday, January 04, 2006 01:13 |