I am teaching a class on C++ programming. Went through the "default" book the college had for one semester - and didn't like it for several reasons. The class is on beginning C++ programming, accomplished via "game programming".
I'm concentrating on teaching them C++ programming, and the "game" portion is simply a vehicle/method to keep the students interest.
While it sounds like "you've got all summer", I also have 2 other curricula to prepare for by next fall, and teaching this summer as well, and even an answer to the following question will require a lot of work to get prepared by August.
This is a beginning C++ class, which means I'll have students who have already been in some programming classes (Java primarily), but not C++
So, what I'm looking for is the following:
o C++ Text Adventure game. Rooms, monsters, treasure, etc. Something along those lines. Like the old cave crawler, Colossal Cave, MSDOS MS Adventure games from a day or two ago - but in C++.
o Not terribly long - the students will key this in, so, say something on the order of 500-1000 lines or less.
o Must be public domain, BSD license, Apache license, or GNU license (I really prefer public domain or BSD/Apache license to start).
o Code is "self-contained". I don't want something that requires some cross-platform library, etc. "Straight" C++ code.
o Code is capable of being compiled with GNU/MSVisual/Xcode compilers. I'm trying to stay platform agnostic, and at a command line level for the class. I'm teaching C++, not an IDE platform. I'd simply like to have the option for those who are Linux/OSX to use their native platforms to compile/run the code.
I will need some time to take a final product, and "decompose" the end code into modules that will be gradually built up over the semester, teaching the basic concepts of programming and C++, culminating in the finished program. In other words, I want to start with something basic, and through continuous improvement, wind up with the end program.
Can anyone point to any source code that might fit these requirements? I've been looking, but many sites are 404'ed now, or are for "purchase", are just straight "C" code, etc.