Java project for a university course.
See the disclaimer.
It's kind of similar to our last project (capybara-cli)
.
Except this time we applied the concepts of:
- Inheritance of classes
superkeywordinstanceofoperator (didn't use it)toString()method
- Polymorphism (I don't think we applied it)
- Nested arrays aka 2D arrays (not even
ArrayListthingies)
And yep, that's kind of it.
The last week of the course we'll learn file reading/writing, I think.
But we hadn't been taught the topic yet, so that's why the program it's so basic.
- Shoot bullets to tanks (decreases 5 health points each)
- Activate mutant tank (duplicates the health of the weakest tank)
- Launch atomic bomb (kills tank, i.e., sets its
healthto 0) - Read a grandma quote (random stuff)
- See how many bullets you've shot
Yes, "i'd like to do".
It's silly. It ought to be silly :)
This project is an 18%-of-the-course-grade minigame.
Please don't think this is the best code we are capable of.
And yeah, it doesn't make sense. It's silly.
- Health can be decreased to a negative amount (although it wasn't listed as a requirement).
- The mutant tank feature fails if the first tank has a health level of 0 (a logic error).
These nasty bugs bit us when we demo'ed the project.
First-semester Computer Science students at Universidad EAFIT in Medellín, Colombia:
Programming Fundamentals (ST0242) at Universidad EAFIT.
