Skip to content

Latest commit

 

History

58 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

{Panzer}

Java project for a university course.

See the disclaimer.

Purpose

It's kind of similar to our last project (capybara-cli) .

Except this time we applied the concepts of:

  1. Inheritance of classes
    • super keyword
    • instanceof operator (didn't use it)
    • toString() method
  2. Polymorphism (I don't think we applied it)
  3. Nested arrays aka 2D arrays (not even ArrayList thingies)

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.

Features

  1. Shoot bullets to tanks (decreases 5 health points each)
  2. Activate mutant tank (duplicates the health of the weakest tank)
  3. Launch atomic bomb (kills tank, i.e., sets its health to 0)
  4. Read a grandma quote (random stuff)
  5. See how many bullets you've shot

Screenshots

Screenshot of the menu

Yes, "i'd like to do".

It's silly. It ought to be silly :)

Disclaimer of nonsensical content

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.

Known bugs (won't fix)

  1. Health can be decreased to a negative amount (although it wasn't listed as a requirement).
  2. 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.

Appendix

Authors

First-semester Computer Science students at Universidad EAFIT in Medellín, Colombia:

Course

Programming Fundamentals (ST0242) at Universidad EAFIT.

License

Unlicense!

About

Inheritance and 2D arrays practice in Java. Mini-project for first-semester course "Programming Fundamentals" (ST0242), taught @eafit by prof @jdtamayoq.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages