Originally Posted by
KalvinL7
Hey, can you please help me out, every time i try to run this code I get an error:
"Exception in thread "Thread-5" java.lang.StackOverflowError
at players.K4LV1N.myMove(K4LV1N.java:115)
at players.K4LV1N.move(K4LV1N.java:86)"
Basically the move() method is called once every match by the SLArena and I am trying to store the moves in an array using the myMove() method.
Hello KalvinL7!
java.lang.StackOverflowError is usually caused by recursive calling with no end of recursion. In your code in
move() method you call
myMove() method and in
myMove() you "call"
move() (
this.move()).