There are three kinds of actuaries: those who can count, and those who can't.
All things are lawful, but not all things are profitable.
Cody Biggs wrote:Is that not what I’m doing? Checking the value of opp[0] for troll, jinn, and wall before adding them
Knute Snortum wrote:
How many elements will be in opp if you read a "Wall"? Or, what is the length of opp?
There are three kinds of actuaries: those who can count, and those who can't.
That would work unless you are not supposed to create any Obstacle if the input is "Wall".Piet Souris wrote:It IS a bit confusing. Another way to look at this is:
suppose that you call the constructor of the Obstacle, and you just send it the line just read in, or the splitted array from this line, i.e:
and let that constructor itself find out what to do with it. How would that constructor look like?
Carey Brown wrote:That would work unless you are not supposed to create any Obstacle if the input is "Wall".
Cody Biggs wrote:The wall is considered an obstacle
Carey Brown wrote:That would work unless you are not supposed to create any Obstacle if the input is "Wall".
Liutauras Vilda wrote:
Carey Brown wrote:That would work unless you are not supposed to create any Obstacle if the input is "Wall".
That is why. Carey, I think you meant: unless you are not supposed to create any Obstacle if the input is not "Wall" ?
Liutauras Vilda wrote:By the way, Obstacles sounds like a Dutch word, but it is English, I thought where I heard this word...
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
Instructions place X wrote:Game
This class controls the game itself. Most of it has been implemented for you. This is all you need to do to this class for a grade of ‘C’.
Instructions place Y wrote:For a grade of C:
Just implement the above classes and interfaces and load the opponents from a file.
All things are lawful, but not all things are profitable.