Introduction to Object-Oriented Programming
We also learned OOP fundamentals, creating custom classes and illustrating the interrelationships with diagrams.
One of the major projects was to create a "Dungeons and Dragons"-esque game. (Me, I ended up going for something like a crude text-based Final Fantasy.) It was a huge open-ended project that sent people off wildly in all directions and sucked a lot of the momentum out of the course. Nevertheless, I managed to make something that's kinda-sorta playable - well, once.
Once? Why once? Well, in order to have the characters attack asynchronously, I had to set up a thread for each character. When a character died, the battle would stop - well, in that the textarea would stop updating. But my poorly-managed threads live on, and if you hit "Fight!" again you'll see all kinds of nonsensical shenanigans. (I tried various ways to kill and restart the threads, but nothing worked.) It was kind of beyond what was called for in the assignment, but I was so attached to ATB from years of playing Final Fantasy that I couldn't live without it.
|2012, William Matheson|