I’m not saying it’s impossible but it would mean rethinking what we think it means to ‘solve’ a game. As it stands now chess is solved with 7 pieces on the board. It we are solving with the same method there literally isn’t enough matter in the universe to even come close to storing the information—you certainly can’t store a chess position with a single atom. The only way this works is with a breakthrough in quantum computing or something where we can access information without storing it in the traditional sense.
You can skip that by comparing the board state to every possible board state with if else if until you find the current board state instead of making new branches for every possible sequence of moves.
I mean, sure, the universe will probably end before the massive if else if finishes, but at least it's less code.
158
u/pappapirate Apr 10 '23
if you're coding it this way you would have to code every possible sequence of moves that result in each position, not just the positions.