Written once
The rules, the physics and the computer player live in one place. Each game adds its own pictures and controls.
A baton clips a corner. One kubb tips into the next. KLAK. The engine is the code that decides where the wood goes.
The rules, the physics and the computer player live in one place. Each game adds its own pictures and controls.
Each game carries an exact copy. If one tiny piece is different, the game will not build.
To change how the game plays, we change the engine. Then every game takes the new version.
Volunteers scored 150 tournament games by hand, throw by throw. We had the computer play and compared.
From the 8 meter line, the computer at its best hits a base kubb 33.5% of the time. Real players hit 32.7%. At the king it is 82.8% to 83.8%.
Taking two field kubbs with one baton is harder. The computer does it 5.7% of the time. Real players do it 16%.
We marked 220 moments in videos of real games, frame by frame. The painted pitch lines worked as a ruler.
An inkast is a kubb thrown back over to the other side. In 73 inkasts we saw where the kubb landed and where it stopped. That told us how far a kubb rolls on grass.
We built the same pieces in MuJoCo, another physics program. Then we ran 1,063 tests with them.
One test caught a baton sliding too far after a bounce. We fixed its friction. Now it stops closer to where MuJoCo says.
A browser and an iPhone can share a pitch. Each works out every throw by itself. Then each turns the whole game into a short code, called a hash. If the two ever disagreed, the codes would not match.
They match. The web uses WebAssembly, which does math the same way in every browser. The iPhone uses the same math code, built to round numbers the same way.
We keep 729 hashes from 19 test matches. Every change to the engine must match them all.
We also played three full matches between a browser and an iPhone, on grass, sand and snow. Every throw matched. The Playdate does its math its own way, so it plays alone.
A change that could move a throw gets a new engine version. Each match keeps the version it started on. So do its replay and its reel. That is why last month’s match still plays back just as it happened.
Planet Kubb Notation writes each throw in a mark or two. A dash is a miss. 2F means one baton took two field kubbs. K means the king fell. Read the marks in order and you can follow a whole turn.
The engine writes the same marks as you play.
The engine is open source under the MIT license, on GitHub as kubb-engine. So are the web game, the iPhone app and the Playdate game.
Sign up and we’ll tell you when there is something new to throw.
Every email has a link to stop them. Where your address goes.