The Mind Of Sauron
From Huben's Wiki
(Created page with "Project Simulate Sauron We are going to write a sizable class, but it will not need to compile. The goal is to get the variable and method declarations right. When writing var...") |
|||
Line 18: | Line 18: | ||
* http://en.wikipedia.org/wiki/Sauron | * http://en.wikipedia.org/wiki/Sauron | ||
* Be creative! | * Be creative! | ||
− | * You may assist each other, or | + | * You may assist each other, or work in pairs. Be sure to put a comment at the top saying who takes credit for the code and who assisted you. |
Write a class named Sauron with the following fields and methods: | Write a class named Sauron with the following fields and methods: | ||
− | * The number of Orcs in his army. ( | + | * Fields: |
− | * | + | ** The number of Orcs in his army. (Make a guess.) |
− | * The | + | ** The number of Uruk-Hais in his army. (Make a guess.) |
− | * | + | ** How many Hobbits it takes to feed an Orc one day (you can feed an Orc five days on a Hobbit.) |
− | * | + | ** How many Hobbits it takes to feed an Uruk-Hai one day (you can feed an Uruk-Hai three days on a Hobbit.) |
− | * An array of | + | ** An array of three words of a spell. |
− | * A method printing an evil cackle. | + | * Methods: |
− | * A method dispatching a number of ringwraiths to a location name. | + | ** A method printing an evil cackle. |
+ | ** A method dispatching a number of ringwraiths to a location name. |