Most of this game was already finished, we just had to make the event handlers. I have added little bits, eg. code to detect if you lost after getting an extra card. Furthermore I added a score counter to see how many games you've won.

Compiled with Blackdown Java 1.3.1

Sources: