Lolo Mohammed wrote:Thank you for your replay ..
this function must called when it is the computer turn to play.
the function is like a recursion because 2 computer is play agine each other.
and when i use a timer this erroe appear many time whith different index and size :
Exception in thread "Timer-24" java.lang.IndexOutOfBoundsException: Index: 10, Size: 5
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at OthelloGame.Search.MiniMax_Search(Search.java:61)
at OthelloGame.OthelloBoard.Computer_Play(OthelloBoard.java:236)
at OthelloGame.OthelloBoard$DoComputerPlay.run(OthelloBoard.java:275)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
I attach a picture of what happen when i run the program whith out timer.
after the computer finish playing, the complete frame is appear.