We can't help you unless you give us something to help you with. "Many errors" doesn't tell us what the problem is. If you posted the exact text of the first few, we could focus on those.
If you could also post the relevant code, that would also help. Please don't post 1000 lines of code and expect someone to go through it all. Just post the chunk where the errors are - and please use the 'code' tags.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
You always want to to paint the screen and have a delay between each move.
The search for the best move should use recursion but not the part that plays the actual move.
You can store the details of each move in a stack.
Print out what moves are being played and a few key variables after each move - this will help you/us debug.
It also helps if the line numbers in the stack trace correspond to the line numbers in the code.
I change the Computer_play function. but the problem is not solved!!!
Joined: Jun 28, 2009
I suggest you learn the marvellous art of debugging then!
The stack trace you showed said there was an error at line 61 in your old code.
It's trying to get the 10th element of a 5 element array and falling over.
Exception in thread "Timer-24" java.lang.IndexOutOfBoundsException: Index: 10, Size: 5