Possible Positions in Chess After n Moves

  • Thread starter leehufford
  • Start date
  • Tags
    Formula
In summary, a formula for the number of possible positions in chess after n moves is not currently known. Estimates have been made for n=1,2,3,4 but beyond that, it becomes too complex to accurately determine. Factors such as piece mobility, capture, and special moves like en passant and castling make it difficult to count all possible positions. However, computers have been able to analyze and estimate the number of possibilities for a limited number of moves. The branch of mathematics used for this is combinatorics, and the algorithm min/max has been used in early chess programs. Tablebases of chess endings provide some insight into the complexity of counting positions, as chess has a large number of arbitrary rules that make it difficult to
  • #1
leehufford
98
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
  • #2
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).
 
  • #3
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
 
  • #4
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.
 
  • #5
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
 
  • #7
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.
 
  • #8
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.
 

FAQ: Possible Positions in Chess After n Moves

How is chess related to math?

Chess is a board game that involves strategy and critical thinking, which are also key components of mathematics. The game requires players to make decisions based on logical reasoning and mathematical calculations, such as predicting the opponent's moves and planning ahead.

Is there a specific formula for winning at chess?

No, there is no specific formula for winning at chess. The game involves a complex combination of tactics, strategy, and creativity, and there is no one set formula that guarantees a win. However, understanding basic mathematical principles and applying them strategically can improve a player's chances of winning.

Can math help improve my chess skills?

Yes, math can definitely help improve your chess skills. By understanding mathematical concepts such as probability, geometry, and logic, you can make more informed and strategic moves during a game of chess. Additionally, practicing mental calculations can also improve your ability to make quick and accurate decisions on the chessboard.

Are there any famous mathematicians who were also skilled at chess?

Yes, there have been many famous mathematicians who were also skilled at chess. Some notable examples include Albert Einstein, who was a proficient chess player and even wrote a book on the game, and John von Neumann, who was a mathematician and computer scientist credited with developing the minimax algorithm used in computer chess programs.

How can I use math to analyze my chess games?

There are various ways to use math to analyze your chess games. One approach is to use mathematical notation to record and review your moves, allowing you to identify patterns and mistakes. You can also use mathematical principles to analyze the strengths and weaknesses of different chess openings and strategies, and make data-driven decisions in your gameplay.

Back
Top