私はこのクラスを持っています
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}
}
そして、私はこのようなことを拡張したい
class EasyTester() extends Tester(getRandomRobot()){}
明らかにうまくいきません。
おそらく問題は些細なことですが、私は最近 Scala の OO 部分に近づいているので、このようなことをしたことはありません。