2014-02-20, 10:09 PM
Jedward Wrote:So the loop solution is...
Code:while((!player1.hasWon) && (!player2.hasWon)){
}
?
Yes
Quote:At the moment, when I run the code, nothing happens after the threads are started. Both are waiting to be woken up. What wakes them up, I don't know.
Try notify or notifyAll.
I never realised that `wait` is a form of sleeping in Javaland.

