AlphaLudo

Play Ludo against a neural network

Meet the player inside the board.

AlphaLudo is a 587,306-parameter graph transformer that learned Ludo by imitating the best model before it, then by playing against past champions and itself. It runs right here in your browser: no server, no account, no tracking.A 587,306-parameter network that learned Ludo, running right here in your browser. No server, no account.

01 Chance

The die makes the question. Not the answer.

Every turn starts with a roll you don’t control. What you do with it is the whole game, and it’s the only part a network can learn.

02 One move

One roll. One piece. One choice.

It doesn’t look ahead. In a single pass it scores every square you could move from, all 225 of them, and plays the best. About 13ms, on your device.

03 How it sees

The board, read as a graph.

Earlier versions looked at the board like a picture. This one treats every square as a node carrying three numbers, and its attention is nudged along the paths the pieces actually travel.

Inside the model

04 Your turn

The next move is yours.

It beats the model it replaced 52.7% of the time, and the strongest scripted player 68.4%. Against you, the dice still have a say.

It knows its odds

What the model believed, move by move.

Besides choosing moves, the network estimates who will win. This is one real game of AlphaLudo against itself: it rated green at 78% at best and 9% at worst, and the dice swung it more than once. You see the same estimate live while you play.

Green’s chance of winning, move by move In this game the model rated green’s chances as high as 78% and as low as 9%. Amber won after 173 turns. 0%25%50%75%100% Green captures, move 40Green captures, move 51Amber captures, move 97Amber captures, move 110Green captures, move 135 Green capturesAmber capturesGreen’s high: 78%Green’s low: 9% Amber wins · move 173start Green’s chance of winning, move by move In this game the model rated green’s chances as high as 78% and as low as 9%. Amber won after 173 turns. 0%25%50%75%100% Green captures, move 40Green captures, move 51Amber captures, move 97Amber captures, move 110Green captures, move 135 Green capturesAmber captures Amber wins · move 173start
  • 587Kparameters. A fifth the size of the model it replaced.
  • 62logged experiments, the failures included.
  • 68.4%win rate against the strongest scripted opponent.
  • ~85%is about as high as any model scored against the bots. The rest is dice.

Your turn

Your seat is open.

Green is yours. AlphaLudo plays amber, and after every move it tells you how it rates your chances.

Take your seat

Playing AlphaLudo

The board is empty.

Loading the model…

Game over

You won.

You aheadAlphaLudo ahead
Your chance of winning, as AlphaLudo saw it.