Notation and links

Where to find out more about Hive, and how moves are written on this site.

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:

WrittenMeaning
wS1The first move of the game: just the piece.
bG1 -wS1Black'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 /wS1Down and to the left (south-west).
wQ wS1\Down and to the right (south-east).
wQ \wS1Up and to the left (north-west).
wB1 bQNo mark: the beetle climbs on top of the black queen.
passThe 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.