Possible Positions in Chess After n Moves

  • Context: Undergrad 
  • Thread starter Thread starter leehufford
  • Start date Start date
  • Tags Tags
    Formula
Click For Summary

Discussion Overview

The discussion revolves around the complexity of determining the number of possible chess positions after a given number of moves (n). Participants explore whether a formula exists for this calculation, the challenges involved, and the implications of various chess rules on the counting process.

Discussion Character

  • Exploratory
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest that finding a general formula for the number of possible chess positions is complicated due to the game's complexity and the lack of knowledge about the total number of legal positions.
  • There is a proposal to use averages in a formula to estimate the number of possible positions after n moves, with an emphasis on reporting the level of certainty.
  • Participants note that factors like piece mobility, captures, en-passant, castling, and promotions significantly affect the number of possible moves, complicating any counting attempts.
  • One participant mentions that while a program could estimate choices after n moves, verifying the accuracy of such estimates becomes increasingly difficult as n increases.
  • Questions are raised about how computers analyze positions and estimate future possibilities given the dynamic nature of chess rules.
  • Another participant references combinatorics as the relevant branch of mathematics for this discussion and mentions the min/max algorithm used in chess programming.
  • It is noted that for a limited number of moves (e.g., 4), it may be feasible to count options due to the limited choices available in the early game.
  • Participants mention "tablebases" as a resource for understanding possible positions with a limited number of pieces, highlighting the arbitrary rules of chess that complicate counting.

Areas of Agreement / Disagreement

Participants generally agree on the complexity of the problem and the challenges in estimating the number of possible positions. However, there are multiple competing views regarding the feasibility of developing a reliable formula and the methods for estimating positions.

Contextual Notes

Limitations include the dependence on specific chess rules and the dynamic nature of piece mobility, which can change the number of available moves significantly. The discussion also reflects uncertainty regarding the total number of legal positions and how to account for various chess scenarios.

leehufford
Messages
97
Reaction score
1
Hello,

I am wondering if there is a forumula for the number of possible positions in chess after n moves. I searched google and found some estimates (including Shannon's number) for the number of possible positions after n=1,2,3,4 but seems to get a little hazy after that.

I was also wondering if it would be an infinite series that converges to a number.

If this isn't possible to do for some reason I would be interested in knowing exactly why it isn't doable. Thanks in advance,

Lee
 
Physics news on Phys.org
Chess is just too complicated to find a general formula. And it is way too complex to simulate every option. It is not even known how many legal positions there are in the game (although there are good approximations).
 
mfb said:
Chess is just too complicated to find a general formula. And it is way too complex to simulate every option. It is not even known how many legal positions there are in the game (although there are good approximations).

Thanks for the reply. I think one of the hardest parts to account for would be "mobility" of pieces, i.e one move can leave your knight with 3 possible squares to move to while another move might leave the same knight with 4 possible moves (due to the board edges or your own pieces already occupying that square).

But what if we used averages in the formula? Could we come up with a reliable formula that estimates the number of possible positions after n moves? And maybe even report the level of certainty? Thanks again,

Lee
 
Chess has other things like piece capture, en-passant, castling and piece promotion when a pawn gets to the other side.

Consider the simple example of moving a knight as the first move, it will block a pawn from making a move in the second round. This frustrates any attempt to count the number of move choices and makes chess so fascinating to players.

You could develop a program to estimate choices after n moves but only because it can evaluate the board configuration after each move.

There would be no way to tell if your average estimate was even remotely correct as n increases unless you used a program to verify it.
 
jedishrfu said:
Chess has other things like piece capture, en-passant, castling and piece promotion when a pawn gets to the other side.

Consider the simple example of moving a knight as the first move, it will block a pawn from making a move in the second round. This frustrates any attempt to count the number of move choices and makes chess so fascinating to players.

You could develop a program to estimate choices after n moves but only because it can evaluate the board configuration after each move.

There would be no way to tell if your average estimate was even remotely correct as n increases unless you used a program to verify it.

Thanks for the reply. I actually play chess quite a bit (at the skill of a good intermediate). Your response raises a few more questions.

1. How would a computer be able to analyse a current position and estimate the number of possible positions thereafter if things like en passant/castling/piece capture/mobility change the number of possibilities constantly?

2. Would it be possible to determine the total number of possible paths to a certain current position?

3. How did Shannon / others estimate the possible positions available after n=1,2,3 and 4? What branch of mathematics is that?
Thanks again,

Lee
 
For 4 moves, it is possible to count all options. The first two moves on both sides have a very limited number of options (mainly "move a pawn" with a few other options), and I would expect that move 3 and 4 do not have more than 100 options each. This leads to something like a million different moves for each side, with little interference. Computers can handle that.

For the full game tree complexity, see the quote at Wikipedia. It is a very rough estimate.
 
You might find some interesting information (but not the full answer to your question) by doing some research into "tablebases" of chess endings. These are databases of all possible positions with a limited number of pieces (about 7 or fewer) on the board.

The basic difficulty with the counting is that chess has a large number of arbitrary rules, compared with most mathematical systems. As an extreme example, after a certain (unknown!) number of moves, both sides might have 9 queens on the board - and counting the number of those positions would be complicated if you want to exclude all the illegal positions where both kings are in check at the same time.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 22 ·
Replies
22
Views
14K
  • · Replies 25 ·
Replies
25
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K