Discussion of chess software programming and technical issues.
Moderators: hgm, Dann Corbit, Harvey Williamson
Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.

Farkov
 Posts: 6
 Joined: Fri Nov 08, 2013 10:35 am
Post
by Farkov » Fri Apr 04, 2014 9:00 am
Angrim wrote:syzygy wrote:
If you can solve the above problems maybe you'll want to have a crack at solving Suicide Chess which, although an almighty task, is next on the list of "solvable chess variants that aren't completely contrived". This might, although it's unlikely, be possible to solve once 6man tablebases are generated.
I have most of the 5v1 but still many many to go and I have stopped the generation for the moment to do some other things. I'll finish them eventually.
I'm afraid they won't suffice to solve the game, but who knows.
An interesting experiment is to temporarily add code to your tablebase probe function that returns "white wins" whenever it probes a 6 piece table. Then search some of the interesting unsolved lines and see if the modified version returns a win. If not, the 6 piece tables won't solve that line. Then assuming that no win shows up from that, change it to probe and return "white wins" for all 7 piece positions, which will give an upper bound on how many lines will be solvable once the 7 piece tables are done.
Since hard drive sizes seem to have stagnated at 2TB, I don't expect 7 piece suicide egtb to be practical anytime soon. But it's still interesting to have some idea of what would be possible if they were.
To be honest, I never really considered hard drive capacity to be the achilles heel of suicide tablebases. I say this because if one has the patience to code them properly, and the 1000 years to generate them, then one would probably invest in some sort of array of disks :)
Also, one would presumably use bitbases when solving and fill in the blanks later.
On that note, have you guys seen how cheap it is to set up something decent with 64GB of RAM these days? :)

syzygy
 Posts: 4904
 Joined: Tue Feb 28, 2012 10:56 pm
Post
by syzygy » Fri Apr 04, 2014 8:43 pm
Angrim wrote:An interesting experiment is to temporarily add code to your tablebase probe function that returns "white wins" whenever it probes a 6 piece table. Then search some of the interesting unsolved lines and see if the modified version returns a win. If not, the 6 piece tables won't solve that line.
Nice idea. I have just "temporarily" solved e3 e6
Funny enough it was about 2x as easy as solving e3 a6 with the same modification.
Code: Select all
1.e3 e6? 2.b4! Bxb4? 3.Qg4! Bxd2? 4.Qxg7! Bxe3? 5.Bxe3! c5? 6.Bxc5! Qg5? 7.Qxh7!
6...b6? 7.Bxb6! Qxb6? 8.Qxh8! Qxb1? 9.Qxg8! Qxc2? 10.Qxe8! Qxf2? 11.Kxf2! a5? 12.Qxf7! Ba6? 13.Bxa6!
8...Qxf2? 9.Qxg8!
I'm now searching the initial position.

Angrim
 Posts: 91
 Joined: Mon Jun 25, 2012 8:16 pm
 Location: Forks, WA
 Full name: Ben Nye
Post
by Angrim » Fri Apr 04, 2014 9:26 pm
Good to see that some progress is being made. It just seems that the drives sold in stores around here have been from 500gig to 2tb for several years now.
If those 60tb drives actually make it into stores in a few more years, that will have interesting results for tablebases.

syzygy
 Posts: 4904
 Joined: Tue Feb 28, 2012 10:56 pm
Post
by syzygy » Sat Apr 05, 2014 10:50 am
syzygy wrote:I'm now searching the initial position.
e3 wins
The first 11 plies of the tree:
Code: Select all
1.e3! a5? 2.Ba6! bxa6? 3.Na3! c6? 4.d3! g5? 5.b4!
4...f6? 5.h4!
2...Rxa6? 3.b4! axb4? 4.Qf3! Rxa2? 5.Qxb7! Rxc2? 6.Qxb4!
1...b5? 2.Bxb5! Bb7? 3.Bxd7! Bxg2? 4.Bxe8! Bxh1? 5.Bxf7! Qxd2? 6.Kxd2!
4...Qxd2? 5.Kxd2! Bxh1? 6.Bxf7!
2...c5? 3.Bxd7! Nxd7? 4.c4! a5? 5.Qh5!
4...e6? 5.h4! Qxh4? 6.Rxh4!
3...Kxd7? 4.Nc3! Qa5? 5.Qg4! Qxa2? 6.Nxa2!
4...c4? 5.b4! cxb3? 6.axb3!
2...Ba6? 3.Bxd7! Nxd7? 4.d3! Bxd3? 5.Qxd3! Qc8? 6.Qxh7!
5...Qb8? 6.Qxh7!
5...Rc8? 6.Qxh7!
5...h5? 6.Qxd7!
5...Rb8? 6.Qxh7!
5...c6? 6.Qxh7!
5...f6? 6.Qxh7!
5...g6? 6.Qxg6!
5...h6? 6.Qxd7!
5...Nh6? 6.Qxh7!
5...Nb6? 6.Qxh7!
5...Nb8? 6.Qxh7!
5...Ngf6? 6.Qxh7!
3...Qxd7? 4.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? 6.Qh5!
4...Nxc2? 5.Nxc2! c5? 6.Nh3!
5...c6? 6.a4!
5...a5? 6.a4!
1...Nf6? 2.Ba6! bxa6? 3.e4! Nxe4? 4.Qh5! Nxf2? 5.Qxh7! Rxh7? 6.Kxf2!
So this is assuming that all 6piece positions are won for white (except for those without black pieces and those in which white has a bishop it can't get rid of anymore), which obviously is not a correct assumption.

Angrim
 Posts: 91
 Joined: Mon Jun 25, 2012 8:16 pm
 Location: Forks, WA
 Full name: Ben Nye
Post
by Angrim » Sat Apr 05, 2014 5:53 pm
cool. This discussion has been bumping my own efforts to do the 6 piece tables up a little on my todo list, although it will still be quite a while since the rest of my life is keeping pretty busy lately.

Vladimir Xern
 Posts: 39
 Joined: Wed Mar 08, 2006 7:30 pm
Post
by Vladimir Xern » Sun Apr 13, 2014 11:48 pm
Hi, Ronald and Ben. This is way offtopic, but it's really great to see you two posting here.
I know the fervor around suicide chess has died down a lot and you guys have redirected most of your focus to other things, but have you been keeping up with the academic developments to PN search?
Dfpn and its progeny, for example, have shown promise, including several recent reasonably successful attempts at parallelization. I'm not sure about their amenability to suicide chess, however, and from these last few posts it sounds like the endgame tablebases may be the final bottleneck in the end.

Angrim
 Posts: 91
 Joined: Mon Jun 25, 2012 8:16 pm
 Location: Forks, WA
 Full name: Ben Nye
Post
by Angrim » Tue Apr 15, 2014 6:51 am
Vladimir Xern wrote:Hi, Ronald and Ben. This is way offtopic, but it's really great to see you two posting here.
I know the fervor around suicide chess has died down a lot and you guys have redirected most of your focus to other things, but have you been keeping up with the academic developments to PN search?
Dfpn and its progeny, for example, have shown promise, including several recent reasonably successful attempts at parallelization. I'm not sure about their amenability to suicide chess, however, and from these last few posts it sounds like the endgame tablebases may be the final bottleneck in the end.
I haven't really paid attention to search in quite a while, what little time I have had for suicide chess has mostly been spent on trying to finish the rewrite of my opening book code. Once that's done, I'll evaluate what part of my engine is currently the weakest link and switch focus to that.
I just spent half an hour reading up on the newer pnrelated stuff, and I don't see a large improvement over pn^2. Most of the improvements are to reduce memory usage, and I did multiweek searches with pn^2 without running out of ram. And that was back when a gig of ram was a major investment

DustinYoder
 Posts: 21
 Joined: Wed Jul 13, 2011 3:20 am
Post
by DustinYoder » Wed Apr 16, 2014 6:40 pm
More details about the database included in the FAQ section of the kickstarter.com page. Please take a look to see if this helps people understand the project.

AlvaroBegue
 Posts: 927
 Joined: Tue Mar 09, 2010 2:46 pm
 Location: New York
 Full name: Álvaro Begué (RuyDos)
Post
by AlvaroBegue » Wed Apr 16, 2014 6:46 pm
DustinYoder wrote:More details about the database included in the FAQ section of the kickstarter.com page. Please take a look to see if this helps people understand the project.
I think you are the one who doesn't understand. Solve a "small" problem first (someone proposed suicide chess in this thread, which I think is a great idea, but feel free to start with connect 4 to get your feet wet). You will then have a much larger sense of how difficult the problem really is.
I am sorry if I am feeding the troll.

hgm
 Posts: 25825
 Joined: Fri Mar 10, 2006 9:06 am
 Location: Amsterdam
 Full name: H G Muller

Contact:
Post
by hgm » Wed Apr 16, 2014 7:42 pm
The point of course is that he does not intend to solve anything. Just produce some general stuff that every engine author already knows how to do.