Most active commenters
  • jeremyjh(5)
  • squidgedcricket(3)

←back to thread

365 points lawrenceyan | 13 comments | | HN request time: 2.19s | source | bottom
1. squidgedcricket ◴[] No.41875758[source]
Would it be feasible to create a complete lookup table of 'best' moves for all given board configurations? I'm not sure how to determine the total number of configurations. Not the same as a tablebase, just a single next move rather than sequence to checkmate.

It wouldn't be competitive against top tier players and AI, but I wouldn't be surprised if it could beat me. 'Instantly' knowing the next move would be a cool trick.

replies(3): >>41875783 #>>41875833 #>>41876086 #
2. k2xl ◴[] No.41875783[source]
The amount of data that would be required for a lookup table for all best moves for every board configuration would be infeasible.

They have managed to create one for 7 pieces. Last update on trying to get to 8 piece database: https://www.chess.com/blog/Rocky64/eight-piece-tablebases-a-...

replies(2): >>41875862 #>>41876145 #
3. jeremyjh ◴[] No.41875833[source]
There are more possible chess games than there are atoms in the universe. It can't be solved by brute force.
replies(1): >>41875944 #
4. squidgedcricket ◴[] No.41875862[source]
Yup, and it looks like a complete tablebase from the start of the game won't ever be feasible.

> From May to August 2018 Bojun Guo generated 7-piece tables. The 7-piece tablebase contains 423,836,835,667,331 unique legal positions in about 18 Terabytes.

5. squidgedcricket ◴[] No.41875944[source]
There's a lot of chess configs, but there's a LOT of atoms in the observable universe. I suspect there's a few in the unobservable universe too.

Chess configs = 4.8 x 10^44, Atoms > 10^70

https://tromp.github.io/chess/chess.html https://physics.stackexchange.com/questions/47941/dumbed-dow...

You might be able to pull off a low-resolution lookup table. Take some big but manageable number N (e.g 10^10) and calculate the maximally even distribution of those points over the total space of chessboard configurations. Then make a lookup table for those configs. In play, for configs not in the table, interpolate between nearest points in the table.

replies(1): >>41877886 #
6. roenxi ◴[] No.41876086[source]
That is basically what a neural network based chess engine is. The function the neural network is encoding is logically equivalent to "probability this move is the best for this board state".

The resolution isn't great, and adding search to that can be used to develop an implicit measure of how accurate the function is (ie, probability the move suggested in a position remains unchanged after searching the move tree for better alternatives).

7. andrelaszlo ◴[] No.41876145[source]
Almost halfway there ;)
replies(1): >>41878974 #
8. jeremyjh ◴[] No.41877886{3}[source]
I didn't say chess positions, I said chess games. That number has a lower-bound of 10^120.

https://en.wikipedia.org/wiki/Shannon_number

replies(1): >>41879139 #
9. jeremyjh ◴[] No.41878974{3}[source]
There are 32 pieces on the board at the start of the game.
10. Scarblac ◴[] No.41879139{4}[source]
But that's not the relevant thing if we're talking about storing a best move per possible position.
replies(1): >>41880162 #
11. jeremyjh ◴[] No.41880162{5}[source]
Unless you’ve calculated every line to a forced win or draw you don’t actually know the objective evaluation of a position and so you can’t determine “best move”. That’s what a tablebase is.
replies(1): >>41886132 #
12. Scarblac ◴[] No.41886132{6}[source]
Yes, I figured that he would need a tablebase anyway. But that's still a few bits per position, the number of possible games doesn't come in to it.
replies(1): >>41888193 #
13. jeremyjh ◴[] No.41888193{7}[source]
A tablebase does include every possible move from every possible position. There are many transpositions, saving space but still every single possible line from a position is represented in a tablebase. How is that different from every possible game from that position?

A 6-piece tablebase is 150GB. A 7 piece is 18TB. An 8 piece is thought to be 2PB, but we don't have one yet. How big do you think a 32-piece tablebase will be?