BetterTile turns a chess screenshot into a 64-square placement. BetterTile's own finder locates the board. The worker samples each square into a grayscale tile, runs one convolutional network on the whole batch, then draws a translucent red box on every occupied square.
The inspection bench
The figure below maps the pipeline to a physical machine: a board stage, a gantry, a stack of etched filter plates for the convolutions, a dial for the running score, and thirteen drawers for the softmax classes.
From pixels to tiles
After the finder proposes axis-aligned bounds , the worker bilinearly samples a luminance grid and cuts it into 64 tiles of with values in . Tile occupies the block
The convolutional stack
One forward pass scores every tile. A stride-2 convolution with a kernel produces 16 maps at . Three convolutions then widen the channels to 24, 40, and 56. Batch normalization and a ReLU follow each convolution. Max pooling after the second and third convolutions shrinks the grid to and then :
The final activations feed a dense layer of 48 units, then 13 logits. Softmax turns those logits into class probabilities over empty and the twelve piece symbols :
Training objective
Training uses cross-entropy with label smoothing on rendered sprites. For a one-hot target the smoothed distribution is
and the loss on a batch of tiles is . Themes, crops, lighting, and facing are randomized so the filters learn piece shape rather than a single sprite sheet.
Orientation and review
Softmax scores are not a guarantee. Squares with are marked uncertain. The worker flips the placement when pawn direction shows Black at the bottom, then hands the board to you before Stockfish runs. In the earlier v0.2.0 benchmark, with Fenshot finding the board, BetterTile matched 145 of 155 boards exactly.
BetterTile technical report (PDF) · Benchmark notes · @advayc/bettertile