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.
  • #71
MathematicalPhysicist said:
Now when I think of it, white will always win, it's not the same as in checkers.

Try to play against the computer in level 10 with the hints with white in chess.com. I know it's not a proof, but it seems plausible that in this game the one who starts will win, if he played perfectly.
It took 109 moves, if I were to repeat these game will the moves of the black changed?

I have exams on Condensed Matter Physics and Particles theory 2 so no more time chatting here.
I stand corrected.

So you've replaced your guess that it would be a draw with the guess that white would win. Well, it's one of those two. If we knew which, we could answer the OPs question.
 
Mathematics news on Phys.org
  • #72
fluidistic said:
Chess is kind of weakly solved when 7 pieces (including the two kings) remain on the board (discarding the castling moves and en passant). I don't know if they're working on 8 pieces, etc. An idea to have another indication that chess may be a draw (or a win/loss) with perfect play is to set symmetrical starting positions with the few pieces on the board and see the outcome of perfect moves.

I also guess that it leads to a draw, but it's just a pure guess.
Some chess variants are easier to deal with than chess (giveaway or suicide chess), whilst others are more complicated (crazyhouse).

Another very interesting question is whether all starting position of chess 960 (Fischer random chess) lead to the same outcome than regular chess, with perfect play.
Some of the starting positions in chess 960 are considered extremely favorable to one side, based on computer plus human analysis. Nothing is proven, but I would guess some are forced wins for one side.
 
  • #73
phyzguy said:
So you've replaced your guess that it would be a draw with the guess that white would win. Well, it's one of those two.
Is it proven that black cannot win against best play?
 
  • Like
Likes dRic2
  • #74
PeroK said:
The 50-move rule limits the maximum number of moves to just under 6000. There's a thread about it here:
Hi PeroK:

The 50 move rule was changed for a while but restored in 1992. It may well be modified again sometime in the future.

https://en.wikipedia.org/wiki/Fifty-move_rule
All of the basic checkmates can be accomplished in well under 50 moves. However, in the 20th century it was discovered that certain endgame positions are winnable but require more than 50 moves (without a capture or a pawn move). The rule was therefore changed to allow certain exceptions in which 100 moves were allowed with particular material combinations. However, winnable positions that required even more moves were later discovered, and in 1992, FIDE abolished all such exceptions and reinstated the strict 50-move rule.​

Regards,
Buzz
 
  • #75
I think it is important to note that Alphazero is a major breakthrough in machine learning, but says almost nothing about solving chess or perfect play in chess. The breakthrough is learning to play chess with no strategy input or example expert games, and reaching a level well beyond human experts. Perfect play, or even best computer was never a goal of the research. A few random observations on the theme that alphazero is very strong, but still far from an oracle of perfection:

- Alphazero mainly played stockfish 8. Stockfish 10 wins against stockfish 8 by at least as much as Alphazero did. Alphazero has not played against stockfish 10 because winning computer chess tournaments or even research in chess is not a priority at all for the deep mind team.

- In the Carlsen-Caruana world chess championship match, there was a game where stockfish 10 running on a supercomputer found a forced mate in 43 moves. Alphazero analyzing these games was unable to find this line.

- There are Alphazero losses indicating that its highly selective search plus deep position understanding (self developed), has weaknesses of the expected kind. There is a game where Stockfish 8 crushed Alphazero in 22 moves in a position with extremely deep tactics. This was exceedingly rare, and only uncovered when a thousand games were played, but it is sufficient to prevent making assumptions about solving chess based on Alphazero.

My opinion is that chess is likely drawn with best play, but this is purely an opinion.
 
Last edited:
  • Like
Likes dRic2
  • #76
To answer the titular question of this thread: a perfect chess player :smile:
 
  • Like
Likes dRic2
  • #77
lpetrich said:
Previous link titled: Solving chess - Wikipedia. More generally, Game complexity - Wikipedia, Solved game - Wikipedia

Solutions can be
  • ultraweak - the outcome of the game if both players play perfectly. In some cases, one can do the solution non-constructively, like with strategy-stealing.
  • weak - an algorithm that gives one player the best outcome, no matter what the other player does, when starting from the initial position.
  • strong - like the above, but starting from any position.
Tic-tac-toe is strongly solved, and it is easy to solve it with brute force. Connect Four is more difficult, but it has been solved in its classic configuration, 7 wide and 6 high, and other small sizes. Likewise, Go has been solved for 7*7 and smaller sizes, though Go is typically played on a 19*19 board.

The most difficult board-game solution so far is for checkers, and is required an enormous amount of computing power. Computers Solve Checkers—It's a Draw - Scientific American, Chinook - World Man-Machine Checkers Champion, Checkers Is Solved | Science The abstract:
Note that checkers is weakly solved.
 
  • #78
Buzz Bloom said:
Hi PeroK:

The 50 move rule was changed for a while but restored in 1992. It may well be modified again sometime in the future.

https://en.wikipedia.org/wiki/Fifty-move_rule
All of the basic checkmates can be accomplished in well under 50 moves. However, in the 20th century it was discovered that certain endgame positions are winnable but require more than 50 moves (without a capture or a pawn move). The rule was therefore changed to allow certain exceptions in which 100 moves were allowed with particular material combinations. However, winnable positions that required even more moves were later discovered, and in 1992, FIDE abolished all such exceptions and reinstated the strict 50-move rule.​

Regards,
Buzz

I know.
 
  • #79
PAllen said:
BWV said:
Chess is unsolvable with traditional computers

Claude Shannon noted that a true chess solution would require storing 10^120 moves. This gets into age of the universe type computational times and impossible storage requirements with any conceivable computer technology other than maybe a huge quantum computer
No, that number would have to be analyzed but not stored. The result of analysis so far could use one of the compact tablebase representations. I once worked out this would only require a number of bits similar to atoms in the moon to play any position perfectly.
You don't have to analyze 10120 games. As an example: If both players move their knights out and back in again before starting a "normal" game this is a separate option in the game tree complexity of 10120, but you go through the same state as other games. No need to analyze them separately once you reach a common state again. You only need to know the value of each position and you have to consider each move from this position, you don't need to analyze all games (=all possible combinations of moves in the whole game).

We had this topic on page 1 already.
 
  • #80
PAllen said:
I would say it is strongly solved for 7 or fewer pieces. The winner as well as best play for both sides, for any such position, can be generated ( even though the sequence itself is not stored).
I'm wondering why you say strongly solved when en passant and castling (which are allowed in some positions with 7 pieces or less) are ignored from the current tablebases. Could you please explain what you have in mind?
 
  • #81
fluidistic said:
I'm wondering why you say strongly solved when en passant and castling (which are allowed in some positions with 7 pieces or less) are ignored from the current tablebases. Could you please explain what you have in mind?

en passant is considered in current tablebases. It is true that castling is not considered because it is so rarely relevant for endgames and because the program using the tablebase can account for this with minimal extra compute time (it already knows if castling is allowed, and just needs to generate trees of when to do castling, with all other evaluation based on tablebase probes). It is also true that the method used for en passant would trivially handle castling, it has just been found to be uninteresting to do so.

So a more precise statement would be that current top engines using 7 piece tablebases can play any 7 piece position perfectly. And that existing tablebases technology could readily be extended to include castling directly. Or that existing tablebases directly strongly solve any 7 piece position in which castling is no longer possible.
 
Last edited:
  • #82
Thank you PAllen for the information.
 
  • #83
White has the advantage of choosing the first offensive move, black has the advantage of choosing the first defensive move.
Seems quite balanced, am i missing something?
 
  • #84
BeedS said:
White has the advantage of choosing the first offensive move, black has the advantage of choosing the first defensive move.
Seems quite balanced, am i missing something?
Where do you see any balance in that?
 
  • #85
Somewhat off topic - I don't know if AlphaZero's learning method affected the results of white versus black.

BWV said:
Alpha Zero and Stockfish
https://arxiv.org/pdf/1712.01815.pdf
The pdf file linked to still mentions AlphaZero versus Stockfish 8, at at time when Stockfish 9 was already released. Stockfish version 10 is now released. In addition, Stockfish opening and end game tables were removed in the earlier matches, and Stockfish was force to make moves at fixed rate, rather than allowing it to manage it's average number of moves per unit time. AlphaZero "trained" on a large number of processors and played on relatively expensive hardware. More on the earlier matches are mentioned in this article.

https://en.chessbase.com/post/alpha-zero-comparing-orang-utans-and-apples

StockFish's and other newer chess programs main improvement is move tree pruning allowing them to look 25 to 27 moves or more ahead, which is why they've exceeded the best human players some years ago.

SIde note - I have an old version of Deep Junior 8, but its interface is StockFish compatible, so I'm able to run StockFish, but I'm using the opening and endgame tables from whatever was available at the time of Deep Junior 8. Considering StockFish is free, it's a nice way to upgrade an existing chess program if it has a compatible interface.
 
Last edited:
  • #86
rcgldr said:
Somewhat off topic - I don't know if AlphaZero's learning method affected the results of white versus black.

The pdf file linked to still mentions AlphaZero versus Stockfish 8, at at time when Stockfish 9 was already released. Stockfish version 10 is now released. In addition, Stockfish opening and end game tables were removed in the earlier matches, and Stockfish was force to make moves at fixed rate, rather than allowing it to manage it's average number of moves per unit time. AlphaZero "trained" on a large number of processors and played on relatively expensive hardware. More on the earlier matches are mentioned in this article.

https://en.chessbase.com/post/alpha-zero-comparing-orang-utans-and-apples

StockFish's and other newer chess programs main improvement is move tree pruning allowing them to look 25 to 27 moves or more ahead, which is why they've exceeded the best human players some years ago.
Stockfish 8 was the latest version available when most of the research was done.

They did a shorter test on stockfish 9 towards the end of the work, wither results similar to stockfish 8.

In the earliest work they used default stockfish settings except for time control, and a poor choice of hash size. This does not mean no opening book, it means the default one rather than a designated tournament opening book

In the more recent matches,all of these weaknesses were rectified. They used tournament time controls, good program settings, as similar hardware as was possible, and endgame tablebases. They had runs with default opening behavior and also using best tournament book recommended by stockfish experts. Alphazero still won all scenarios.

The rating difference between stockfish 10 and 9 is rather small. It would be very interesting to chess players to a match with stockfish 10, but no interest really to deep mind. The research goal was never specifically to produce and maintain a strong computer chess program. Instead, it was to demonstrate achieving beyond human playing performance on multiple games, with no starting knowledge except the rules, by self play.

See my post #75 for additional info.
 
  • Like
Likes BWV
  • #87
BeedS said:
White has the advantage of choosing the first offensive move, black has the advantage of choosing the first defensive move.
Seems quite balanced, am i missing something?

You're missing everything to do with the game of chess.
 
  • #88
BeedS said:
White has the advantage of choosing the first offensive move, black has the advantage of choosing the first defensive move.
Seems quite balanced, am i missing something?

How about we have a duel. We stand 10 feet apart. I shoot first, then you shoot. Completely balanced, right?
 
  • Like
Likes PeroK
  • #89
phyzguy said:
How about we have a duel. We stand 10 feet apart. I shoot first, then you shoot. Completely balanced, right?
You can't win a game of chess in 1 move.
 
  • #90
BeedS said:
You can't win a game of chess in 1 move.
Are you familiar with the chess term zugzwang? At present is simply unknown whether or not the starting position is a deep zugzwang for whoever moves first. Essentially no one thinks this is likely, but there is no evidence beyond experience from imperfect play that it is false. Your argument simply has no logical force whatsoever.
 
  • Like
Likes Buzz Bloom
  • #91
replacement%2520AZ%2520blog%2520bar%2520graph%25207%252012%252018.width-1500.png


This is the latest 1000 games between AZ and SF8. There is no apparent advantage for the second move in Shogi or Go. but a clear difference between AZ's results playing as white vs black. I don't think it has been released, but the results of AZ's training games would be interesting in this regard.

It does seem reasonable to view these games as an approaching perfect play, much like if we trained AZ to play checkers it would get close to the solved game results

https://deepmind.com/blog/alphazero-shedding-new-light-grand-games-chess-shogi-and-go/
 

Attachments

  • replacement%2520AZ%2520blog%2520bar%2520graph%25207%252012%252018.width-1500.png
    replacement%2520AZ%2520blog%2520bar%2520graph%25207%252012%252018.width-1500.png
    24.1 KB · Views: 860
  • #92
BeedS said:
You can't win a game of chess in 1 move.

Yes you can.

Fischer-Panno, Palma 1970:

1. c4

And black resigned.
 
  • Like
Likes fresh_42, mfb and PAllen
  • #93
BWV said:
View attachment 238143

This is the latest 1000 games between AZ and SF8. There is no apparent advantage for the second move in Shogi or Go. but a clear difference between AZ's results playing as white vs black. I don't think it has been released, but the results of AZ's training games would be interesting in this regard.

It does seem reasonable to view these games as an approaching perfect play, much like if we trained AZ to play checkers it would get close to the solved game results

https://deepmind.com/blog/alphazero-shedding-new-light-grand-games-chess-shogi-and-go/
I agree this is evidence, but I don't take it as strongly as you do.

1) As I argue in my post #75, there is clear evidence AZ's play is not perfect, so you can't draw any firm conclusions about perfect play from it.
2) I actually think it is very unlikely that AZ training on checkers would replicate the solved play. Of course, unless someone does this, it is anybody's guess.
 
  • #94
PeroK said:
Yes you can.

Fischer-Panno, Palma 1970:

1. c4

And black resigned.
A resignation is not a played win.
 
  • #95
BeedS said:
A resignation is not a played win.
How many top level games end in checkmate? Almost none. Almost all wins are resignations, or a loss on time.
 
  • #96
PeroK said:
Almost all wins are resignations, or a loss on time.
Resignations because they know they are going to lose, you don't know you are going to lose after white makes the first move.
 
  • #97
BeedS said:
Resignations because they know they are going to lose, you don't know you are going to lose after white makes the first move.
You might if you are Panno playing Fischer in 1970,:smile:
 
  • Like
Likes PeroK
  • #98
BeedS said:
Resignations because they know they are going to lose, you don't know you are going to lose after white makes the first move.
With equally skilled players :smile:
 
  • #99
BeedS said:
Resignations because they know they are going to lose, you don't know you are going to lose after white makes the first move.

That's immaterial. You can win a game of chess in one move. Fischer did. It's in the record books. A win is a win.

If you'd said you can't checkmate an opponent in one move, that would be different.
 
  • #100
phyzguy said:
How about we have a duel. We stand 10 feet apart. I shoot first, then you shoot. Completely balanced, right?

In fairness, this duel analogy does not include any defensive moves or strategy. Actual duels of this form supposedly proved "honor" of both duelists; a weird form of trust that the opponents deliberately miss their shots while standing upright and still as targets. Sheer idiocy IMO particularly if the duel was caused by one person calling the opponent untrustworthy. (See A. Hamilton vs. A. Burr.)

Dueling with swords, staffs, knives, or bare-handed allows defensive moves, tactics and defensive strategies. Physical strength, training, speed and stamina determine outcomes to a large extent, particularly expertise in fencing with swords and knives. According to some sources, this expert advantage led to the stupidity of pistol dueling as described. Little skill required to miss or stand still; just steady nerves.
 
  • #101
"Who would win a perfect game of chess?"
Nobody, they would both resign on move 0 and fall back to negotiations...
 
  • #102
Can we come back to the topic, please?
 
  • #103
BWV said:
Chess is unsolvable with traditional computers
You seem to be assuming some kind of "brute force" approach, where every possible move sequence is explicitly played out. But reasoning allows you to deal with large classes of positions all at once. For example, just knowing the remaining pieces - regardless of where they are on the board - is enough to tell you that certain endgame positions are a draw, or a win, etc. Maybe there's a way to classify midgame positions into a thousand or a million different cases, that allows chess to be solved. In that case, whether a computer can solve chess would depend on how smart its algorithm is.
 
  • #104
BeedS said:
Nobody, they would both resign on move 0 and fall back to negotiations...
I call this tactic "dressing up the straw-man"
PeroK said:
If you'd said you can't checkmate an opponent in one move, that would be different.
You can't checkmate in one move.
PAllen said:
Are you familiar with the chess term zugzwang?
Understood it but didn't know what is was named, thanks.
PAllen said:
At present is simply unknown whether or not the starting position is a deep zugzwang for whoever moves first.
PAllen said:
Your argument simply has no logical force whatsoever.
It could also be a deep zugzwang in favor of whoever moves second.
 
  • #105
So, I played the other day against the computer in the level of grandmaster in chess.com (i.e level 10).

You wouldn't expect me to win with white, but I guess this was one of those days everything clicked.
I believe this means in the end white always wins in a perfect game.
I used the hints' option, but I didn't always take the first option it suggested me to do (since if I had done that the game would have ended in a draw).

I am attaching a .txt file with the moves, it took something like 93 moves in total.
Cheers!
 

Attachments

  • chess-winning strategy.txt
    1.2 KB · Views: 117
<h2>1. Can a computer ever achieve a perfect game of chess?</h2><p>Yes, with the advancement of artificial intelligence and deep learning algorithms, computers have been able to achieve a perfect game of chess. In fact, in 1997, IBM's Deep Blue computer defeated world chess champion Garry Kasparov in a six-game match.</p><h2>2. What is considered a perfect game of chess?</h2><p>A perfect game of chess is when a player makes every move that is considered optimal and leads to a win, without making any mistakes or allowing any opportunities for their opponent to win.</p><h2>3. Has a perfect game of chess ever been achieved by a human?</h2><p>No, a perfect game of chess has never been achieved by a human. While there have been instances of players making very few mistakes, it is impossible for a human to make every single optimal move throughout an entire game.</p><h2>4. Can a perfect game of chess be predicted or calculated?</h2><p>It is highly unlikely that a perfect game of chess can be predicted or calculated. The complexity of the game and the number of possible moves make it impossible to calculate every single outcome. However, computers can analyze and predict the most optimal moves based on algorithms and data.</p><h2>5. Is a perfect game of chess the same as a draw?</h2><p>No, a perfect game of chess is not the same as a draw. In a draw, both players have made moves that have resulted in a stalemate or a tie. In a perfect game, one player has made every optimal move to ensure a win.</p>

1. Can a computer ever achieve a perfect game of chess?

Yes, with the advancement of artificial intelligence and deep learning algorithms, computers have been able to achieve a perfect game of chess. In fact, in 1997, IBM's Deep Blue computer defeated world chess champion Garry Kasparov in a six-game match.

2. What is considered a perfect game of chess?

A perfect game of chess is when a player makes every move that is considered optimal and leads to a win, without making any mistakes or allowing any opportunities for their opponent to win.

3. Has a perfect game of chess ever been achieved by a human?

No, a perfect game of chess has never been achieved by a human. While there have been instances of players making very few mistakes, it is impossible for a human to make every single optimal move throughout an entire game.

4. Can a perfect game of chess be predicted or calculated?

It is highly unlikely that a perfect game of chess can be predicted or calculated. The complexity of the game and the number of possible moves make it impossible to calculate every single outcome. However, computers can analyze and predict the most optimal moves based on algorithms and data.

5. Is a perfect game of chess the same as a draw?

No, a perfect game of chess is not the same as a draw. In a draw, both players have made moves that have resulted in a stalemate or a tie. In a perfect game, one player has made every optimal move to ensure a win.

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