Who would win a perfect game of chess?

In summary, while chess has not been solved yet, other games such as connect four, tic tac toe, and checkers have been. It is possible to predict the outcome of a perfect game of chess, but it is currently unknown whether it would result in a win or a draw. Chess is considered a finite game and has a limited number of possible strategies, but with enough time and computing power, it is a solvable problem.
  • #141
DaveC426913 said:
Can we assume they're playing "perfect" games?
No, that's not the point. The point is that - in the absence of perfect analysis - the current chess algorithms are the best we have. And they lead to the provisional assessment that white has an advantage but not enough to win. THis may change with better algorithms. But, in the absence of more a successful algorithm that shows white with a winning advantage at the start of play, that assessment is unjustifiable.

If anyone claims that white has enough advantage to win a perfect game, that is a personal view which has no concrete evidence to back it up.
 
  • Like
Likes sysprog
Mathematics news on Phys.org
  • #142
A question related to this. If I had a chess book thta contained every possible game of chess(10^100 pages or 10^1000 pages). And if i could with infinite speed find any page I needed, could I beat a grandmaster if I were a beginning player?
 
  • #143
Most likely. The book isn't even the important thing here. The important thing is the infinite reading/processing speed. You would look up all possible future games from a given move on and then find which move can make you force a win (if any) or force a draw. If white can win a perfect game then as black you don't have a clear best move, but a grandmaster playing white will make a mistake at some point. You might still lose some of these games, but at least you should win many games with white and draw in the others.
 
  • #144
@mfb @Thecla It might not actually be enough. The starting position is very likely a draw, so you would need the grandmaster to make a mistake in order to win. Even being told the objective evaluation of each possible move, a beginner would be unlikely to select the move(s) that put the grandmaster under the most serious pressure.
 
  • #145
If white can force a win then you'll win every game with white, getting a draw with black once is sufficient to win overall. If you are in a losing position you can choose the move that gives the grandmaster the least good options - eventually they'll make a mistake. (If black could force a win then you'll win for the same reason)
If white can force a draw then you should never lose, but eventually even a grandmaster should make a mistake.
 
  • #146
Let's suppose that each turn for our hypothetical beginner, they choose a move at random that preserves the objective evaluation. It's unlikely that these will be moves that put the opponent under any serious pressure. Even though these moves don't lose, they likely won't be a serious winning attempt either, so it would be much easier for the grandmaster to avoid mistakes. I'm assuming that the starting position is a draw.
 
  • #147
Moves that don't put the opponent under serious pressure are losing moves. Typically you expect a game situation to have just one, maybe two moves that preserve your current status unless you are in a losing situation or it's in the late game approaching a draw.
 
  • #149
mfb said:
Typically you expect a game situation to have just one, maybe two moves that preserve your current status unless you are in a losing situation or it's in the late game approaching a draw.

Could you explain why you think this is the case? I find it to be a dubious claim. In the starting position, probably every single move is a draw. However 1.e4 and 1.d4 make a much stronger play for advantage than, say, 1. Na3.

I recommend you take some typical middle game positions and run an engine on them, and count how many moves result in an evaluation between, say, -0.8 and +0.8 (in my experience, this is usually the boundary between winning/drawing). Of course engines aren't perfect, but it should give you a reasonable idea. Unless there is a specific tactic in the position, you should find many moves that work.
 
  • #150
mfb said:
Moves that don't put the opponent under serious pressure are losing moves. Typically you expect a game situation to have just one, maybe two moves that preserve your current status unless you are in a losing situation or it's in the late game approaching a draw.
I tend to agree with this [except perhaps, possibly at the very first few moves (and possibly few other positions) this may not possibly apply?]. I think another way to put the same thing might be:
Q: "how many perfect games (among actual ones) have been played on part of one player (not both necessarily)?".

My feeling is that answer is likely to be: "none". Perhaps the answer could be "a few times" when the other player is playing deliberately extraordinarily poor, but I don't know really.But the question above is from the "starting position". If you choose late game positions (or perhaps very few mid-late) I think there would be many perfect games on part of one player.
 
  • #151
Thecla said:
A question related to this. If I had a chess book thta contained every possible game of chess(10^100 pages or 10^1000 pages). And if i could with infinite speed find any page I needed, could I beat a grandmaster if I were a beginning player?
If you are a beginner and want to beat a grandmaster all you need is a computer!
 
  • #152
Infrared said:
Could you explain why you think this is the case? I find it to be a dubious claim.
Consider it from the point of a losing position: All moves must go to a winning position for the opponent. With about equal material this is a really rare condition. There are not many losing positions. If it's your move and you want to keep your advantage you must move to one of these. If you can find any of these you have a winning position - they are common.
If the game is a draw then you still need to find a position where the other player cannot move to a winning position (for them).

Sure, in the late game these conditions are easy to find. You can move around your king forever or until the 50 move rule applies. If one side has a big material advantage it's also easy to find - but that shouldn't happen in this case (unless white can force a win and the amateur makes very poor choices in their losing position, knowing they can't force a draw).
Infrared said:
and count how many moves result in an evaluation between, say, -0.8 and +0.8 (in my experience, this is usually the boundary between winning/drawing)
It's the boundary with current computers or players. There is a good chance a perfect player could force a win from most of these situations if they are not too late in the game.
 
  • #153
mfb said:
If the game is a draw then you still need to find a position where the other player cannot move to a winning position (for them).
Kind of... for a side to make progress, there is usually not a single move that does the trick. You generally have to follow a plan for several consecutive moves to gradually improve your position. Randomly choosing a move that preserves the evaluation at each juncture won't do this. You'll choose plenty of suboptimal moves that don't help/might worsen your position and throw away any progress you've "accidentally" made, but aren't bad enough to actually change the evaluation. I can give some examples if you'd like.

mfb said:
It's the boundary with current computers or players. There is a good chance a perfect player could force a win from most of these situations if they are not too late in the game.
Current computers aren't perfect, but they're as close as we have. And they indicate the drawing margin in chess is rather large. I'm not sure why you think there is a "good chance" things are much different in a perfect game.
 
Last edited:
  • #154
Infrared said:
Current computers aren't perfect, but they're as close as we have.
You know that means nothing.
Infrared said:
And they indicate the drawing margin in chess is rather large.
I expect perfect players to draw, but I also expect that nearly all games by humans don't follow such a strategy. Replace a human with a perfect player after a few moves and I expect them to win with white most of the time, and maybe even with black (if you replace both, then whoever is moving next is more likely to have a winning position).

Do you Nim? It's a nice game for game theory. It can't end in a draw but it shows nicely how the winning/losing moves work together. If you have a losing position you can have something like 10-20 possible moves. If you have a winning position there is often exactly one move you have to follow, otherwise the opponent can force a win.
 
  • #155
mfb said:
You know that means nothing.I expect perfect players to draw, but I also expect that nearly all games by humans don't follow such a strategy. Replace a human with a perfect player after a few moves and I expect them to win with white most of the time, and maybe even with black (if you replace both, then whoever is moving next is more likely to have a winning position).

The top engines would beat a human opponent, even the world champion, almost every time with white or black. Just look at Stockfish's ELO rating. Humans eventually crack under the relentless pressure of the computer's relatively flawless play.
 
  • #156
mfb said:
You know that means nothing.
I disagree- my personal view is that the top computers play close enough to perfect chess that we can make inferences like this. But aside from this, the higher the calibre of play, the more draws we see. I don't see any reason why this trend would suddenly reverse, and that the path should be so razor thin.

mfb said:
.I expect perfect players to draw, but I also expect that nearly all games by humans don't follow such a strategy.
Neither does a player who randomly chooses among the moves that preserve the evaluation! I don't see what's wrong with my previous argument.
Infrared said:
Randomly choosing a move that preserves the evaluation at each juncture won't do this. You'll choose plenty of suboptimal moves that don't help/might worsen your position and throw away any progress you've "accidentally" made, but aren't bad enough to actually change the evaluation.
mfb said:
Do you Nim? It's a nice game for game theory. It can't end in a draw but it shows nicely how the winning/losing moves work together. If you have a losing position you can have something like 10-20 possible moves. If you have a winning position there is often exactly one move you have to follow, otherwise the opponent can force a win.
I'm aware of Nim, but I don't think it's similar to chess at all. I think a better comparison would be with checkers, which has been solved to a draw, and my understanding is that it is very "drawish" in the sense that there are usually many paths to a draw.

May I ask if you've studied chess at all? Your views certainly aren't standard in the chess community.
 
  • Like
Likes BWV and PeroK
  • #157
PeroK said:
The top engines would beat a human opponent, even the world champion, almost every time with white or black. Just look at Stockfish's ELO rating. Humans eventually crack under the relentless pressure of the computer's relatively flawless play.
Indeed. And future programs will beat current programs easily.
It's a common mistake to look at the current situation and to say "that's the best we can possibly get. How could it possibly get better?"
Infrared said:
Your views certainly aren't standard in the chess community.
Which view exactly? That the starting situation is probably a draw is the general expectation. That a particularly bad move can ruin the game should be fairly uncontroversial. That computers outplay humans from nearly any position in the early game is clear as well - demonstrating that they can win where a human doesn't figure out how. A perfect player would outplay the computers quite significantly, too.
 
  • #158
Anyone can explore the question of draw breadth and similar questions in chess assuming perfect play for the test case of 7 or fewer pieces (instead of just arguing). My guess is the general nature of positions with more pieces shouldn’t be that different from 7 pieces. Just go to:

https://lichess.org/editor

set up a position and select analysis board. If the position involves 7 or fewer pieces, you will get perfect information, including distance to mate for winning moves (using tablebases).
 
  • #159
PAllen said:
Anyone can explore the question of draw breadth and similar questions in chess assuming perfect play for the test case of 7 or fewer pieces (instead of just arguing). My guess is the general nature of positions with more pieces shouldn’t be that different from 7 pieces. Just go to:

https://lichess.org/editor

set up a position and select analysis board. If the position involves 7 or fewer pieces, you will get perfect information, including distance to mate for winning moves (using tablebases).
Here is what I see:

1) For materially balanced or even unbalanced by one pawn, most are drawn, and in most cases many moves draw (only a few lose).

2) If a balanced position is a win, there are usually only one or a few moves to win.

3) For a substantially unbalanced position that is a win, many, and sometimes all moves win. However, most of them are nonsensical, in that they do nothing to bring the win closer, they just don't give away the win. If they were all scored with 'forced win', and you randomly select from them, you could imagine a won game that never ends yet is always 'won'. Of course, with Nalimov tables you can always choose the shortest win. The link I gave uses syzygy tablebases, which have less information, but you can still always make progress from the given information.

I believe most chess GMs would say these characteristics are true of chess positions in general, not just with those with 7 or fewer pieces.
 
  • #160
PAllen said:
Here is what I see:

1) For materially balanced or even unbalanced by one pawn, most are drawn, and in most cases many moves draw (only a few lose).

Material is the biggest single factor in a positional evaluation, but one side can have a material deficit and anything from a winning edge to a crushing position. Pawn and exchange sacrifices for short-term tactical or long-term positional advantage are common. Especially at grandmaster level.

Moreover, many games have material equality long after one side has a winning advantage.

In my experience, positions a clear pawn up are more often winning that drawn.
 
  • #161
mfb said:
Indeed. And future programs will beat current programs easily.
It's a common mistake to look at the current situation and to say "that's the best we can possibly get. How could it possibly get better?
I'm not sure. Alphazero was generally regarded as a massive improvement over stockfish (the previous best chess engine). Still, in their match, 839/1000 games were drawn. When a new best engine comes along, with an entirely structure (reinforcement learning from zero knowledge vs traditionally programmed with human heuristics), and still the large majority of games are drawn, I take this as evidence that computers are converging on perfect play.

mfb said:
Which view exactly?
This:
mfb said:
Typically you expect a game situation to have just one, maybe two moves that preserve your current status unless you are in a losing situation or it's in the late game approaching a draw.
In balanced position, this is rarely the case unless there is a very specific tactical reason. If you are in a position where you have only one or two moves, it's probably you're worse because you're opponent previously played strong moves that put you under pressure- this is unlikely to happen if they just played moves randomly that do not change the evaluation. There can be lots of moves that don't objectively lose, but still aren't good.
 
  • Like
Likes PeroK
  • #162
PeroK said:
Material is the biggest single factor in a positional evaluation, but one side can have a material deficit and anything from a winning edge to a crushing position. Pawn and exchange sacrifices for short-term tactical or long-term positional advantage are common. Especially at grandmaster level.
common in the sense of a reasonable fraction of games have them. Uncommon in the sense that most positions during a game do not have a valid sacrifice available.

PeroK said:
Moreover, many games have material equality long after one side has a winning advantage.
again, you are talking games and I was talking positions.

PeroK said:
In my experience, positions a clear pawn up are more often winning that drawn.

It so depends. If only kings and pawns, yes. On the other hand, if each side has a minor piece, not so much. Even if GMs fail, perfect play on both sides most often ends in king and piece versus king, which is drawn. Perfect play has more cases of turning “practical winning chances” into draws than cases of “practical drawing chances“ becoming losses.
 
  • #163
PAllen said:
It so depends. If only kings and pawns, yes. On the other hand, if each side has a minor piece, not so much. Even if GMs fail, perfect play on both sides most often ends in king and piece versus king, which is drawn.

I don't think this is true- the stronger side is not obligated to allow so many pawn trades. If all else is equal, a pawn up in a minor piece ending is often objectively winning (there are some important classes of exceptions of course, like opposite color bishops, or if all pawns are on the same side of the board)
 
  • #164
Infrared said:
I'm not sure this is true. If all else is equal, a pawn up in a minor piece ending is often objectively winning (there are some important classes of exceptions of course, like opposite color bishops, or if all pawns are on the same side of the board)
No, you don’t need those cases. You just need to be able to reach most any position of two kings, two pieces, and one pawn. Then one piece sacrifices for a pawn, leading to draw. Looking at perfect play using tablebases, this is achieved far more often than human GMs can achieve it.

For example, this is a random position that many GMs might have trouble holding as black, but is a draw with perfect play

https://lichess.org/analysis/8/8/3kn3/2p5/8/1P1KP3/3B4/8_w_-_-_0_1
 
  • #165
I've looked at plenty of pawn-up endings with engine analysis in my chess study- it's very often winning. The side a pawn down can't in general force enough pawn trades to reach those drawn positions. To make progress, the stronger side can try to create a passed pawn to win more material, or to distract the opponent's king.

For what it's worth, my FIDE is around 2100 and my blitz rating on chess.com is a little over 2400.
 
  • Like
Likes PeroK
  • #166
Infrared said:
I've looked at plenty of pawn-up endings with engine analysis in my chess study- it's very often winning. The side a pawn down can't in general force enough pawn trades to reach those drawn positions. To make progress, the stronger side can try to create a passed pawn to win more material, or to distract the opponent's king.

For what it's worth, my FIDE is around 2100 and my blitz rating on chess.com is a little over 2400.
You are rated higher than me, for sure, but I think our disagreement probably boils down to how to count positions, and what is a random position. In my last post, by random, I literally mean that. I placed the material without any thought.
 
  • #167
Sure, but one key feature is how many pawns are left. The weaker side wants fewer because then the position is closer to being drawn, as you noted. In your example, it's 2 vs 1, so it's not so surprising that the weaker side can hold. In a similar ending with, say, 6 pawns vs 5, I'd expect the stronger side to be winning much more often. Of course, this can't be tested with a tablebase...
 
  • #168
I took a random game, Carlsen vs. Ding, blitz game from last year, up to here:
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 54. Ba4 Nf6 5. O-O Be7 6. d3 b5 7. Bb3 d6 8. c3 Na5 9. Bc2 c5 10. d4
and put that into https://lichess.org/analysis
Stockfish says +0.3
Then I made some random nonsense moves:
Ra7 -> +1.3
Rb8 -> +1.3
Rg8 -> +2
h6 -> +1.2
c4 -> +1.4
b4 -> +1.3
Nb7 -> +1.9
Nb3 -> +5.3
Nc4 -> +1.5
Most of them are "doing nothing". One of them sacrifices the knight. They all give white a big advantage. All larger than 0.8, the threshold where Infrared expects a win for white.
Then I looked for non-random moves:
cxd4 and exd4 preserve the +0.3.
Qc7 leads to +0.4
I didn't find anything else that is reasonable.

There are three moves that don't ruin your position completely.

------

I went a bit deeper into the same game:
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 54. Ba4 Nf6 5. O-O Be7 6. d3 b5 7. Bb3 d6 8. c3 Na5 9. Bc2 c5 10. d4 cxd4 11. cxd4 O-O 12. h3 Re8 N 13. d5 Bd7 14. Nc3 Qb8 15. Bd3 Rc8

Now Stockfish says +0.1.

"Doing nothing" is harder in this position, so I picked random moves:
Rb1 -> -0.4
a3 -> 0
h4 -> -1.2
g3 -> -2.3
Nxe5 -> -3.6
Ng5 -> -0.2
Nb1 -> -0.5
Bg5 -> -0.3
Kh1 -> -0.3
Qd2 -> -0.3
The actual move done in the game was Ne2 (+0).
Here the situation is very different, there are many moves that don't immediately ruin the evaluation.

I let Stockfish evaluate all the positions up to then. Most of the time white had +0.2 to +0.4. The biggest change was Bd6 of white in the move before, which changed the evaluation from +0.5 to 0. Stockfish suggests doing Ne2 in this move already, leading to a +0.4 evaluation. I did that and then followed its advice every time.
After 14. Nc3 Qb8 15. Ne2 Nb7 16. Be3 Nc5 17. Ng3 Rc8 18. Nd2 Na4 19. Rb1 Qc7 20. Bd3 Nc5 21. Be2 Na4 it evaluated the position as +0.7 and suggested Nb3, which lowered the evaluation to +0.3. A bit weird.
Similarly, after
22. Nb3 Qc2 23. Qe1 h5 24. Na1 Qc7 25. Bxh5 Nxh5 26. Nxh5 Bh4 27. Qb4 a5 28. Qd2 Qd8 29. Qe2 f5 30. exf5 Bxf5 31. Rbc1 Qe8 32. Ng3 Bxg3 33. fxg3 Be4 34. Kh2 Bxd5 35. b3
the evaluation was +0.3 but then white improved it to +0.8 by moving b3.
Stockfish later ended up in a circle of the white queen setting chess from two different places.
35. b3 Nc5 36. Bxc5 Rxc5 37. Rxc5 dxc5 38. Rf5 Qc6 39. Nc2 Be4 40. Rxe5 Re8 41. Rxe8+ Qxe8 42. Ne3 Bc6 43. Qd2 Qe5 44. Qd8+ Kh7 45. Qd3+ Kg8 46. h4 Kh8 47. Qd8+ Kh7 48. Qd3+

Looks like both cases can happen. There are situations where just a small set of moves is reasonable*, and there are situations where a single move is unlikely to ruin your situation (unless it's obviously stupid).

*and this is not including things like an exchange where it is obvious
 
  • #169
mfb said:
They all give white a big advantage. All larger than 0.8, the threshold where Infrared expects a win for white.
Then I looked for non-random moves:
cxd4 and exd4 preserve the +0.3.
Qc7 leads to +0.4
I didn't find anything else that is reasonable.

There are three moves that don't ruin your position completely.
...

Looks like both cases can happen. There are situations where just a small set of moves is reasonable*, and there are situations where a single move is unlikely to ruin your situation (unless it's obviously stupid).

*and this is not including things like an exchange where it is obvious

The position you gave after 10. d4 does fall into the category "things like an exchange where it is obvious". White is threatening to win a pawn on e5. The three moves you gave are the most reasonable ways to not lose the pawn. The only other two ways I see to save the pawn are 10...Nd7 and 10... Nc6. The move 10...Nd7 definitely looks unnatural but it still only gives white an advantage of +0.4 according to lichess' version of stockfish [Edit: running for a bit longer, more like +0.6]. Only 10... Nc6 is on the verge of losing because black loses a lot of time on the queenside. So if we restrict to moves that don't obviously lose the e5 pawn, 4/5 seem to be in the acceptable range and the fifth is borderline.

Edit: I noticed a 6th move that doesn't lose a pawn immediately: 10...Bb7, counterattacking on e4. The engine does indicate this is bad (again around +0.8) because the bishop is blocked out after 11. d5. Still, I don't think this changes the statistics much.

Edit 2: Just to clarify, I'm not saying that there are never balanced positions that only allow very few moves. Sharp positions do of course exist, but they're usually the critical moments of the game, and and more often there is a range of better and worse options. Also, these sharp positions usually come about from both players playing very purposefully, and I still doubt that you'd get many such positions playing randomly.
 
Last edited:
  • #170
"the player who goes first will always win " doesn`t work in all games, but the idea is rather interesting!
 
  • #171
Biflittle said:
"the player who goes first will always win " doesn`t work in all games, but the idea is rather interesting!
It is trivial to construct games where the player who goes first must lose with mutual perfect play. For example, sprouts with 1 initial dot (in this case, the first player loses in all game trees; there are only 3 nodes in the complete game tree).
 
  • #172
Grid said:
The question is when if ever will we exhaust all the number of moves possible in chess?
A complete game tree for chess? Never. Even a 32 piece tablebase which would allow perfect play I once calculated would require a number of bits comparable to the number of atoms in the moon.
 
  • #173
It's easy to come up with examples even in chess. A typical "mutual zugzwang" is: white has a pawn on e4 and king on d5, and black has a pawn on e5 and king on f4. Whoever goes first loses.
 
  • Like
Likes PeroK
  • #174
perfect play I once calculated
How did you manage to do that?
 
  • #175
Biflittle said:
perfect play I once calculated
How did you manage to do that?
He calculated the size of the tablebase. Which is roughly the same as calculating the number of chess positions. Which is just a matter of putting a reasonable upper bound on that number. The moon has somewhere in the neighborhood of 10^44 atoms, give or take a few powers of ten. So you just have to come up with something that imposes a similar bound on the number of chess positions.

One upper bound is 13^64 -- 13 possible pieces at each position and 64 positions. Though you have to add a few bits for whose turn it is and how many turns have elapsed without a pawn advance or a capture. Tighter bounds are possible.
 

Similar threads

Replies
9
Views
2K
Replies
29
Views
3K
Replies
179
Views
23K
Replies
16
Views
1K
Replies
7
Views
1K
  • General Math
Replies
1
Views
1K
  • General Math
Replies
1
Views
1K
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
1K
Back
Top