I've simplified the code in a few places and made an enhancement or two, but, as former users will see, the computer still uses the same old strategy that should allow a decent player to win most of the time. As always I welcome your comments and suggestions. The rules of Dominoes in this implementation are very simple. You and your opponent each start with seven. The highest double goes first, or lacking one, the highest point total.
Players then take turns playing one domino next to a matching number on one already played.
If you can't play, you must pick from the stock, and when the stock is exhausted, you pass. The winner is either the first to get rid of all one's dominoes, or the one with the smallest point total when both players have passed. A game is 50 points. Instructions Your hand is in the lower left part of the screen. The computer's hand and the stock are respectively at the upper left and right.