Page 1 of 1

Exam

Posted: Wed Jun 17, 2009 11:07 am
by boabyfett
played too much warhammer instead of revising :(.

still nevermind I hate afternnon exams a whole day off and im pacing back and forth untill 2:30.

then 3 hours of java :D

Re: Exam

Posted: Wed Jun 17, 2009 3:00 pm
by Haviland
Well, thenswer to question one is probably not "Storm the keep."

Re: Exam

Posted: Wed Jun 17, 2009 9:36 pm
by boabyfett
could be. could be.

id use two ArrayLists: ArrayList <Order> and ArrayList <Destruction>

import java.keep.*

private ArrayList <Order> attackers;
private ArrayList <Destruction> defenders;
private boolean stormTheKeep;

public Class StormTheKeep extends tierFour implements oRvR
{

public stormTheKeep(ArrayList localOrder, ArrayList localDest)
{
attackers = localOrder;
defenders = localDest;
stormTheKeep = false;
}

if(attackers.size() > defenders.size() || attackers.contains("Skarim") )
{
stormTheKeep = true;
}


}

Re: Exam

Posted: Thu Jun 18, 2009 7:03 am
by Haviland
:roll: