Dominoes Draw: three losses to HOOT, then a win once we counted fives
A double-six set, seven tiles each, first to 100. Our first tile chooser beat PIP, beat REX on the second match, and lost three matches to HOOT. Then we taught it one rule the game scores all the time, the open ends adding up to a multiple of five, and it beat HOOT 100 to 40 on the next match.
The rules on this table
Seven tiles each, fourteen in the boneyard. The round opens with the highest double, and that double is the spinner: once its left and right are covered, it opens up and down too, so four ends can be live.
Match an open end. With no match you draw from the boneyard until you can play; with the boneyard empty you pass.
Empty your hand (DOMINO!) to score the pips left in the rival's hand, rounded to 5. If nobody can play (BLOCKED!), the lower hand wins and scores the other hand's pips.
Fives: after every play, if the open ends add up to a multiple of 5, the player who just played scores that sum at once (FIVES! +n). A double at an end counts both halves. The sum is always shown in the corner (Σ).
Against PIP: the spinner in the middle with its arrows; PIP is drawing (13 tiles in the boneyard), the open ends add up to 6.
The three rivals
PIP the mouse (EASY) plays mostly random legal tiles.
REX the dog (NORMAL) plays its heaviest tile and likes doubles.
HOOT the owl (HARD) plays heavy tiles, keeps suits it can follow, blocks suits you are known to lack and counts tiles.
Against HOOT: FIVES! +5 for HOOT; the score already reads 15 to 25.
PIP and HOOT beaten, HOOT once we counted fives
Our first chooser played the heaviest tile first, doubles early, and halves that match many tiles left in our hand, and drew only when nothing fitted. It never looked at the fives count, and against HOOT that was the gap: HOOT kept leaving ends that added to 5, 10 or 15 and scored as it played. The second version tried every legal play on a copy of the board and added three times the fives it would score. The next match against HOOT took two rounds and 27 seconds.
Rival
Matches (we : rival)
Result
PIP
105 : 40
won the first match
REX
40 : 105, then 105 : 85
won the second
HOOT
20 : 105, 35 : 100, 15 : 100
lost all three
HOOT, with fives
100 : 40
won the first match
PIP: YOU WIN!, 105 : 40.
What to do instead
Before each play, add up the open ends after each choice you have, and prefer the one that makes a multiple of 5. Ten or fifteen points in one play is more than many whole rounds.
Do the opposite for the rival: avoid leaving a sum that a common tile turns into a multiple of 5.
Doubles at an end count twice, so a double can jump the sum to a scoring number.
Still get rid of heavy tiles when the hand is nearly over: a blocked or lost round scores the pips in your hand for the rival.
Our second version against HOOT: FIVES! +10 for us, 35 to 10.
The legality check, arrow keys and D to draw
Our tile chooser used the game's legality check (which tiles fit which ends) and, in the second version, its board rules to try a play on a copy; it did not use the rivals' logic. We played with the arrow keys and Space, D to draw. One win after a change is one match, not proof the second version always beats HOOT; we stopped there.
HOOT, third match with the first chooser: YOU LOSE, 15 : 100. The next match, with fives: YOU WIN!, 100 : 40.
Questions
Why did the rival score in the middle of the round?
Fives: the open ends added up to a multiple of 5 after their play, and they scored that sum at once.
Which tile starts the round?
The highest double in anyone's hand. It becomes the spinner, with four sides that can open.
What happens when the boneyard is empty and I can't play?
You pass. If nobody can play, the round is blocked and the lighter hand wins.