How to make awaiting java application for users events
<p>I am working on a 4 player card game. One player is user, while others are computer players. I started a loop to get cards from each player. Computer players throw cards by selecting an appropriate card automatically, while user by clicking over card. But the problem is, loop don't wait for user to select. </p>
