Links
- Gen42 GamesThe publisher of Hive and its expansions, with the official rules.
- Hive on BoardGameGeekForums, strategy articles, rules questions and variants.
- The Universal Hive ProtocolThe standard way for Hive programs to talk to each other, from the Mzinga project. This site's game strings and moves follow it.
- MzingaAn open-source Hive program with a viewer and an engine, and the home of the protocol.
- nokamuteAn open-source Hive engine in Rust. Its rules code is what this site's engine uses to generate legal moves.
- Hive move notationThe protocol's definition of a move string, the notation described below.
The move notation
Every move names the piece that moves and where it ends up, relative to a piece already on the table.
Pieces are written as colour, bug and number: w or b, then Q queen, B beetle, G grasshopper, S spider, A ant, M mosquito, L ladybug, P pillbug, then a number for bugs a player has several of, counted in the order they were placed. So wA2 is White's second ant and bQ is Black's queen.
Where it goes is a neighbouring piece with a mark that says which side. A mark before the piece puts the move on the left of it, a mark after puts it on the right:
| Written | Meaning |
|---|---|
wS1 | The first move of the game: just the piece. |
bG1 -wS1 | Black's grasshopper to the left (west) of White's spider. |
wQ wS1- | To the right (east) of the spider. |
wQ wS1/ | Up and to the right (north-east). |
wQ /wS1 | Down and to the left (south-west). |
wQ wS1\ | Down and to the right (south-east). |
wQ \wS1 | Up and to the left (north-west). |
wB1 bQ | No mark: the beetle climbs on top of the black queen. |
pass | The player had no legal move. |
A game is written as the game type followed by its moves, separated by semicolons:
Base+MLP;wL;bM wL-;wQ -wL;bQ bM/
That is what the analysis board's Game box shows and accepts, and what links to games contain: /analysis#Base+MLP;wL;bM wL-;… opens that game on the board. The box also accepts full UHP game strings (with the InProgress;White[3] part) and plain lists of moves, one per line, numbered or not.
A position set up in the analysis board's editor is written the same way, with the pieces in place of the empty board: after the game type and @ come the pieces with their coordinates (pieces on one hex bottom first), then :w or :b for who is to move and, optionally, : and the turn number. For example Base+MLP@wQ(0,0)bQ(1,0)bB1(1,0)wA1(-1,0):b;bA1 bB1- is a black beetle on the black queen, Black to move, then one move. Such lines open on the analysis board like any other; games against people or the engine always start from the empty board.