20
$\begingroup$

Is there a set of rules that translates any program into a configuration of finite pieces on an infinite board, such that if black and white plays only legal moves, the game ends in finite time iff the program halts?

The rules are the same as ordinary chess minus the 50 move rule, exchanges and castling.

And what is the minimum number of different types of pieces (i.e. the simplest game) that is needed for a chess-like game to be Turing-complete? (Each type of piece having a set of allowed moves that is invariant under translations)

  • 0
    On an infinite board, will we still restrict movement to a maximum of 8 squares at a time? I doubt that this will affect the answer, but it would be nice (in general) to figure out exactly what changes for chess on an `infinite board'.2011-10-17

4 Answers 4

12

The classic reference on this is the paper "Computing a Perfect Strategy for nxn Chess Requires Time Exponential in n" by Aviezri Fraenkel and David Lichtenstein; unfortunately, I can't find the (30-year-old!) paper online anywhere and while I think I have the proceedings it came from, it's buried in a pile of boxes. Of course, your board isn't finite, but your initial piece configuration is; this means that if there's any computable bound on the needed board size to resolve an initial position, then chess isn't Turing-complete. (If the status of all positions of diameter $d$ could be determined using boards of size no more than $f(d)$, then they can be determined in $\mathrm{EXP}(f(d))$ time by the EXPTIME completeness result, and thus wouldn't be Turing-complete). I vaguely recall seeing something about such a result, but unfortunately some quick searches aren't turning anything up. The expert on the mathematics of chess is Noam Elkies, so hopefully he can spot this and chime in...

2

If you allow for a board with an infinitely repeating looping section (to emulate the infinite tape), I'm pretty sure you can develop a turing complete chess board.

Pawns probably can't be used (because they can't be moved back to loop a calculation) and queens probably have too much movement range to be useful as well. You'll probably need "walls" on your board (impassable squares) and possibly even multiple kings (all of which can be checkmated).

Suggested computation method: white is 1 move away from having his king checkmated and must check the black king on every move. The black king is moved around various arrangements of walls, white rooks, bishops and knights which perform the various operations required for calculation. Calculation halts when the black king comes to a dead end and can never win or can always win.

  • 0
    It's relatively straightforward if you get 'infinite' pieces, which is what your mapping requires. The original question (infinite board, but only a finite number of pieces) is substantially more challenging.2014-12-18
0

Though I do not understand the question description compeltely (and forgive my wrong use of terminology, it is not really my field), the title compelled me to think about this.

Under the assumption that a game only ends if a draw is claimed, I believe that chess can be used to represent any brainfuck code. And, as brainfuck is turing complete, I would say that chess is turing complete.

Here is what I have in mind:

  1. Put the kings in a spot where they are not bothered (White king A1, pawn A2, B2; black king H1, pawn G2, H2)
  2. Designate a square for the queens to move (black C7-D8, white E7-D8)
  3. Map the 8 directions a queen can move in onto the 8 brainfuck commands

If the queen walks 'off the edge' she comes back into her area on the other side. (Example, moving down from A5, the queen goes to A8.)

To make sure each move uniquely identifiable, a queen move is followed by a king move iff the queen walked 'off the edge'.

  • 0
    The traditional definition of a 'position' does encode some information about past game data (e.g., whether either side can castle, what if any en passant captures are legal) but otherwise doesn't include any information as to how the pieces got to where they are; this is what makes e.g. retrograde analysis problems interesting.2014-07-09
-3

As chess is played on a finite board with finite many pieces, the number of which can not grow but decline during the game, chess is a game with finite many states and thus never Touring-complete. Though the number of states grows exponentally with the size of the board chess only represents a finite state machine and will be won by computers at some time in the future.

  • 3
    The question is about a generalization of chess played on an *infinite* board as stated in the very first sentence.2014-07-08