I have this class
class Tester(round: Int, x: Int, y: Int,sparringPartners:Array[RobotSpecification]) {
def this(s:Array[RobotSpecification]) = {
this(5, 800, 600, s)
}
def getRandomRobot(eng: RobocodeEngine): Array[RobotSpecification] = {//blabla}
}
and i want to extend doing something like this
class EasyTester() extends Tester(getRandomRobot()){}
Obviously it doesn't work.
Probably the problem is trivial but i'm just recently approaching the OO part of Scala so i never worked with this stuff.