About Barrelhead
Barrelhead is a place to play classic board games against the computer: checkers, backgammon, shut the box, farkle, yatzy, dominoes, reversi, mancala, chinese checkers, nine men's morris, tic-tac-toe, four in a row, chess, gomoku and ludo so far. It is free, there is no account, and there is nothing to download. A game you leave is where you left it when you come back.
Who makes it
Barrelhead is made and run privately in Stockholm, Sweden. The privacy page says who is responsible for personal data.
The games are free and are meant to stay free, paid for by advertising once that starts. The privacy page says what that will mean, and what the site stores and counts today.
How the boards are made
Nothing on the boards is a photograph, and nothing is a generated picture. Every barrel head, board, piece, stone, dice and shadow is computed by a program written for this site.
The program has a description of each thing instead of a picture of it: the planks of the barrel head and the grain of the oak, the paint and where years of play have worn it off, the turned profile of a checker, the curve of a glass stone, and one lamp above and to the left. For every point in a picture it works out which surface is there, how the light from the lamp falls on it, and what color that makes.
Everything is seen from the same angle, from above and a little toward you, so a flat board keeps its shape while the height of a piece still shows. Shadows are cast from the same lamp, which is why a king, being two pieces high, throws a longer shadow than a single piece.
The pieces you move are separate small pictures made the same way, in the same light, and laid over the board. The chalk rings and dots that mark your moves are drawn by the page.
How the computer opponents are built
Each game has its own engine, written for this site. The engines for checkers, reversi, mancala, Chinese checkers, nine men's morris and tic-tac-toe look ahead: they try their moves, your answers and their answers to those, and score what they find.
The chess engine looks ahead the same way, begins from a small book of openings written by hand for this site, and on its four lower levels is made to overlook pieces the way a person does. The four in a row engine also looks ahead, and at full strength it plays the opening from a book of exact answers and then tries to work each position out to the end of the game. The gomoku engine builds its moves from the threats on the board, and at its two highest levels it searches for a win that can be forced one threat after another.
The backgammon engine scores every way of playing a roll, and at its two highest levels it also runs through the rolls you could throw next. In shut the box, farkle and Yatzy there is no board to look ahead on. There the engine works out what each choice is worth on average over every way the dice can fall next, and at full strength it takes the one worth the most.
The dominoes engine is never given your tiles: at full strength it deals the hidden ones out in many ways that fit what has happened, plays each deal through, and lays the tile that does best on average. The ludo engine is given the roll that lies on the board and never the ones to come: its lower levels play by habit, and its higher levels weigh how far the pieces have come against the chance of being sent back, the highest one over the next three rolls.
All of them run in your browser, on your own device.
The rules in each engine are checked against a second, deliberately plain version of the same rules, written straight from the rule text, to see that the two always allow the same moves. Where published figures exist they are checked against those as well. The checkers engine finds exactly the published number of ways the first ten moves of a game can go, five by each side: 18,391,564.
How the levels are measured
Every game has five levels. They are set by playing them against each other, from a few dozen to a few thousand games for each step, until each level beats the one below it clearly but not every time. The lowest levels make mistakes on purpose. The highest do not.
The results, with the number of games behind them, are on each game's page: checkers, backgammon, shut the box, farkle, yatzy, dominoes, reversi, mancala, chinese checkers, nine men's morris, tic-tac-toe, four in a row, chess, gomoku and ludo.
Get in touch
Write to hello@barrelhead.games. If a rule on this site is wrong, a level does something odd, or a game misbehaves in your browser, that is the address to tell.
This page was last changed on 26 October 2026.