Tiles with two halves
A domino is a rectangular tile divided into two square halves, each marked with a number of dots, called pips, or left blank. In a standard double-six set, the values run from zero to six, and every possible pair appears once, giving 28 tiles. Tiles where both halves are the same, such as double-six, are called doubles.
Reading by camera
Imagine a model trained to read dominoes from photographs, perhaps to score games automatically or help people learn to play. It must count the pips on each half of every tile in an image and report which tile it is.
Rotation swaps the halves
A domino can lie in any direction. If a 2–5 tile is turned through half a turn, its 2 half moves to where the 5 was, and the 5 half moves to where the 2 was. Read from left to right, it now appears as 5–2. But it is still the same tile.
Defining the target
Before testing, it must be clear what the model should predict. If the task is identifying which tile is present, the answer is an unordered pair: the tile with a 2 and a 5. The order in which the halves appear does not matter. Defining the target this way avoids penalising correct answers.
Scoring fairly
A sensible evaluation accepts both 2–5 and 5–2 as correct for that tile. Labels should be stored in a standard form, such as always putting the smaller number first, and the model's output converted the same way before comparison. This separates real mistakes from differences in order.
When orientation matters
Some applications do need orientation. In a game, the way tiles are placed matters, because each tile must match the number on the neighbouring tile's end. A model tracking a game might need to report which end faces which way. In that case, the order becomes part of the target, and should be labelled and tested.
Blank halves
Some halves have no pips at all. These blanks represent zero, and should be recorded as 0 in the labels. A model that ignores blanks, or treats them as missing, could misidentify tiles such as 0–3 or the double-blank.
Counting pips
Pip counting can go wrong when pips are small, worn, or reflect light. Tests should include photographs at different distances, angles and lighting, and tiles of different colours and materials. Some sets use coloured pips for different numbers, which can help or confuse a model.
Chinese dominoes
Domino games are played around the world. Chinese dominoes, which are older than European ones, use longer tiles and a set of 32 tiles representing the results of throwing two dice, so there are no blank halves. Some pips are coloured red and others white. A model trained on one style would need testing on others.
A general lesson
The domino example shows a general point: an evaluation must match the meaning of the task. Scoring answers in a way that ignores what really counts as the same thing can make a good model look bad, or hide real errors.
Larger sets
Bigger domino sets, such as double-nine and double-twelve, have many more tiles: 55 and 91 respectively. With up to twelve pips on a half, counting becomes harder, and pips may be arranged in unfamiliar patterns. A model trained on double-six tiles should be tested on larger sets before being used with them.
Overlapping tiles
In play, tiles touch end to end, so the model must find each tile's boundary before counting.
Try the arithmetic
A double-six set has 28 tiles. If order mattered, there would be 49 possible ordered pairs of values from 0 to 6, but because 2–5 and 5–2 are the same tile, only 28 distinct tiles exist.
The idea to take away
Rotating a domino swaps its halves without changing the tile. Evaluations should accept both orders unless orientation is explicitly needed, and record blank halves as zero, so the score reflects real reading errors.
Sources & further reading
Figures in the example are illustrative. Photograph: 相十副的一種隨機佈置.JPG by Outlookxp, CC BY-SA 3.0, via Wikimedia Commons; cropped and resized. Reference organisations do not endorse this website.

