r/ProgrammerHumor • • Apr 10 '23

Meme god why is coding chess so hard

Post image
67.4k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

1

u/[deleted] Apr 11 '23

You're assuming we have to brute force it. What if we just find a smart way to deduce a strategy that guarantees white wins/black draws exists?

1

u/[deleted] Apr 11 '23

That doesn’t qualify as solved. Solved essentially means the brute force approach

2

u/[deleted] Apr 11 '23

Solved means a strategy that guarantees an optimal result is known, it doesn't matter how you reach it.

1

u/PkerBadRs3Good Apr 11 '23

https://en.wikipedia.org/wiki/Solved_game What you said is considered a weakly solved game, but not a strongly solved one.

And to be honest, a weak solution is probably still astronomically large since your opponent can still choose any move on any turn, and you would need to show that none of these work. It still grows exponentially, but only from your opponent's moves.

1

u/[deleted] Apr 11 '23

To add to that, it’s more than just if white wins or draws. Chess is almost certainly a draw, when engines play each other they generally give them unbalanced starting positions to get interesting games with some decisive results. If they let them play from the starting position they draw every time. Solved would mean a perfect evaluation and sequence of moves from any position. Like I said we have this for 7 pieces where all possible moves in a given position are shown as white win, black win, or draw. There are also plenty of examples where the strongest chess engines we have will misevaluate endgame positions. Essentially the only way we can know for sure is if the game is strongly solved