King of high dimensional space

Which has more mobility on an empty chessboard: a rook, a king or a knight?

On an ordinary 8 by 8 chessboard, a rook can move to any one of 14 squares, no matter where it starts. A knight and a king both have 8 possible moves from the middle of the board, fewer moves from an edge.

If we make the board bigger or higher dimensional, what happens to the relative mobility of each piece? Assume we’re playing chess on a hypercube lattice, n points along each edge, in d dimensions. So standard chess corresponds to n = 8 and d = 2.

A rook can move to any square in a coordinate direction, so it can choose one of n − 1 squares in each of d dimensions, for a total of (n − 1)d possibilities.

A king can move a distance of 0, 1, or −1 in each coordinate. In d dimensions, this gives him 3d − 1 options. (Minus one for the position he’s initially on: moving 0 in every coordinate isn’t a move!)

What about a knight? There are C(d, 2) ways to choose two coordinate directions. For each pair of directions, there are 8 possibilities: two ways to choose which direction to move two steps in, and then whether to move + or − in each direction. So there are 4d(d − 1) possibilities.

In short:

• A king’s mobility increases exponentially with dimension and is independent of the size of the board.
• A rook’s mobility increases linearly with dimension and linearly with the size of the board.
• A knight’s mobility increases quadratically with dimension and independent of the size of the board.

The rules above are not the only way to generalize chess rules to higher dimensions. Here’s an interesting alternative way to define a knight’s moves: a knight can move to any lattice point a distance √5 away. In dimensions up to 4, this corresponds to the definition above. But in dimension 5 and higher, there’s a new possibility: moving one step in each of five dimensions. In that case, the number of possible knight moves increases with dimension like d5.

Related post: A knight’s random walk in 3 or 4 dimensions

4 thoughts on “King of high dimensional space”

1. Small typo, if I understood correctly “So there are 4n(n – 1) possibilities.” Should be 4d(d – 1) possibilities. Pretty interesting though, particularly how the knights moves can be can be defined in higher dimensions!

2. IlludiumQ36explosivespacemodulator

Fascinating article. Of course math on its own is very interesting but it becomes enthralling when combined with an already endlessly fascinating subject. Math plus chess piece movement options in N dimensions. Mr. Spock, however, would have found the topic to be rather bland. Thanks for expanding the minds of we who are mere mortals!

3. Chris Brew

Does this analysis imply a general tendency for it to get more difficult to force checkmate as d increases? I think I am already convinced that in order to win a rook and king versus king endgame you need a fast-increasing number of rooks.

4. Another way to look at a rook’s move is that it keeps one index fixed, and moves arbitrarily in all the others. In other words it protects orthogonal hyperplanes through it’s current position. Such a rook has a lot of freedom!