It makes no sense. If you don't want to solve chess problems, what could you possibly learn from / prove /disprove with AIs that can do nothing but solving Chess problems?lech wrote:Scientists use chess and chess engines to prove that people need an artifical intelligence, of course not to solve chess problems.![]()
What do you think about it?
chess, artificial intelligence, horizon effect
Moderator: Ras
-
- Posts: 28379
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: chess, artificial intelligence, horizon effect
-
- Posts: 554
- Joined: Thu Apr 24, 2008 9:31 am
- Location: Belgium
-
- Posts: 28379
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: chess, artificial intelligence, horizon effect
Well, this obviously is a way to force a draw. But the question is whether it is the only way, and if not, whether it is the best way. Normally the quickest way to achieve the objective (whether mate or draw) would be considered the correct solution. And this one seems excessively slow, because it leaves the black King free to roam the board, and leaves black 3 passers, which he can advance lot to reset the ply counter a number of times. So it will take hundreds of moves to acheive the draw.peter wrote:[FEN "1k6/3p4/1B6/4Pp1p/1p5R/1p4p1/pP3n2/K6n w - - 0 1"]
1. Rxh1 Nxh1 2. e6 dxe6 3. Bc7+ Kb7 4. Bxg3 e5 5. Be1 e4 6. Bh4 e3 7. Bf2 f4 8. Be1 e2 9. Bg3 f3 10. Bf2
After exchanging the Rook against the Knight, the Bishop has to keep the remaining Knight at h1 with the threat of stalemate when getting captured
A rabid Rook is potentially much faster: it can confine the King to a fraction of the board, and does not leave the opponent time to push Pawns. So there is a good chance to force repeats, and even without them, you are done after 50 moves.
So Fruit seems to have the better plan; the question is just whether it borns out.
Score means everything. It tells you that the engine really did not see the solution at all. It just picks this PV because all alternatives would have got it checkmated by that time, it is the only way to survive that long. But it still thinks it is badly lost.lech wrote:Score, excluding ZERO and mates mens rather nothing.
This of course is crucial in similar positions where there would be other slow but certain losses. It would then latch on to the slow loss untill long after the certain draw is well within the horizon, just because its eval does not recognize it as a certain draw, but attaches an absurdly low score to it. It will only switch to the draw by the time it searches so deep that all the losing variations have been pushed below it. Such 'negative selection' is quite unreliable; the alternatives might be arbitrarily slow, yet very certain.
So to not count as 'Artificial Stupidity' it is imperative the evaluation would recognize such draws. And the triggers for this can be very cheap. For instance, most engines would evaluate a King safety of some sort, depending on the number of squares next to it that are attacked. It should be easy to notice that in this case all the squares are attacked or blocked, so the white King has no legal moves. This seems quite relevant information in any case, as this should be considered a severe tactical weakness, where every check means an immediate mate. But in combination with the presence of only two pieces (King + other), it of course also means you have an iron piece and can play for stalemate.
-
- Posts: 3410
- Joined: Sat Feb 16, 2008 7:38 am
- Full name: Peter Martan
Re: chess, artificial intelligence, horizon effect
Not so in the latest variant of your shown output as for optimal black moves.hgm wrote:So Fruit seems to have the better plan
3...Kc6? might lead to draw rather soon to be "seen" by enginesRxb4 Ka8 Ra4+ Kb7 Rb4 Kc6 e6 g2 Rc4+ Kd5 Rc1 dxe6 Bxf2 Nxf2 Rc5+ Ke4 Re5+ Kd3 Rd5+ Ke2 Re5+ Kd2 Rd5+ Ke3 Rd3+ Ke4 Rg3
but 3...Ka6 instead might not.
I have stored a .pgn with lots of variants back then, when I first looked at this position:
I didn't have SF with bbs- support then and now did some backward solving of the one and the other variant only with SF6 and full Syzygys. Even if it maybe would have been even better to leave bbs away, cause they probably don't help here anyhow, here's the output with full hash afterwards with 1.Rxb4(?) played:[Event "?"]
[Site "?"]
[Date "2013.03.14"]
[Round "?"]
[White "eighth, step"]
[Black "to , heaven"]
[Result "1/2-1/2"]
[Annotator "Martan,Peter"]
[SetUp "1"]
[FEN "1k6/3p4/1B6/4Pp1p/1p5R/1p4p1/pP3n2/K6n w - - 0 1"]
[PlyCount "19"]
1. Rxh1 (1. Rxb4 $2 Ka8 2. Ra4+ (2. Rc4 g2 3. Rc8+ (3. Rc1 Nd3 4. e6 dxe6 5.
Rc3 Ne1) 3... Kb7 4. Rc1 (4. Rg8 Ng4 5. Bg1 f4 6. e6 dxe6 7. Rg6 e5 8. Rd6 Ng3
9. Rg6 Kc7 10. Bb6+ Kd7 11. Bc5 f3 12.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ember this is a study and it wasn't cooked when published.
I don't think there are other ways to remis besides 1.Rxh1
Peter.
-
- Posts: 373
- Joined: Thu Jan 22, 2015 3:21 pm
- Location: Zurich, Switzerland
- Full name: Jonathan Rosenthal
Re: chess, artificial intelligence, horizon effect
I suppose the irony is that even if we as humans can understand the solution, I don't think we understand why the engines solution may or may not work except with a large amount of their help. At least I have trouble understanding some of the lines in that analysis.
Still a very interesting problem from a theoretical perspective.
Still a very interesting problem from a theoretical perspective.
-
- Posts: 3410
- Joined: Sat Feb 16, 2008 7:38 am
- Full name: Peter Martan
Re: chess, artificial intelligence, horizon effect
Of course you're right, I wouldn't say I'd really "understand" all of these variants I got interactively in the sense of being sure, there couldn't be alternative moves anywhere along with a possible change of outcome. And no, a single numeric eval except #in x doesn't mean a thing. (Neither 0.00 does, as we see often enough in other positions.)jorose wrote:I suppose the irony is that even if we as humans can understand the solution, I don't think we understand why the engines solution may or may not work except with a large amount of their help. At least I have trouble understanding some of the lines in that analysis.
Yet the change of evals along the moves and between them in depth and variance does say enough to me to believe in the variants of good engines with enough hardware-time in forward- backward- analysis.
At the moment I try to get a mate-score after 1.Rxb4(?) from this variant backward as near as possible to the root- position:
1. Rxb4 Ka8 2. Ra4+ Kb7 3. Rb4 Ka6 4. Be3 g2 5. Rb6+ Ka5 6. Rg6 Ng4 7. Bg1 h4 8. e6 dxe6 9. Rg7 h3 10. Ra7+ Kb5
Right now I'm at 7...h4 with a #29- score but with one ply only output- variant. Will tell if further relevant progress is to be made onwards
Peter.