2014-02-25, 07:07 PM
[MENTION=801]Jedward[/MENTION]; Did you figure this out? You just need to figure out when threads need to wait and when they need to notify another thread.
Dealer/CardGame/Main thread: Notify players when it's their turn. Wait during their turn.
Player: Wait when it's not my turn. Notify dealer when my turn is over.
Also there's an extra semicolon in Player.removeCard()
Dealer/CardGame/Main thread: Notify players when it's their turn. Wait during their turn.
Player: Wait when it's not my turn. Notify dealer when my turn is over.
Also there's an extra semicolon in Player.removeCard()
Code:
if(!(hand.remove(temp)));
