I've uploaded a new version
here I've been trying to solve this problem by placing System.out.println statements in different parts of the program. Remember you might have to run the
applet a few times before it freezes and don't use the retry button to try again. Just refresh the page.
Here's the code again with some small modifications like adding the println statements. I'm sorry I have to post the whole code but I don't really know where the problem is so I post it all. I put bold on all println statements and some lines of code that got to do with what happens when hp reaches 0, theese stop or start threads.
Here is the last lines in console after a freeze. It always ends in Ter1dead:true
Ter2dead:true
Ter3dead:true
Ter4dead:true
You can also try the applet yourself and check the console the println statements are there.
Those I took when the applet had freezed.
Help will be appriciated
[ February 08, 2006: Message edited by: Jon Mattson ]
[ February 08, 2006: Message edited by: Jon Mattson ]
[ February 08, 2006: Message edited by: Jon Mattson ]