Go back
Engines and Endgames

Engines and Endgames

Only Chess

r

Tony, kiss mine!

Joined
18 Mar 06
Moves
3118
Clock
02 Mar 07
Vote Up
Vote Down

Originally posted by YUG0slav
2 words: Vladamir Kramnik
isn't Kramnik the GM that overloked a mate in one threat from his opponent?
i heard about that, but just thought my friends were lying to try and make the point that i should never resign

X
Cancerous Bus Crash

p^2.sin(phi)

Joined
06 Sep 04
Moves
25076
Clock
02 Mar 07
Vote Up
Vote Down

Originally posted by GregM
Perhaps tablebases aren't installed (you don't want your engine to get killed when for some reason it can't find its tablebases), or perhaps the author didn't want to go to the trouble to implement tablebase access (basic endgame knowledge like KBNK takes only a few lines of code), or perhaps its a slightly more complex game, like an endgame where pawns can be ...[text shortened]... ue that engines are often worse than humans at understanding long-term factors in endgames.
All modern engines can access Nalimov tablebases because while it may take a few lines to implement KBNK it would take a lot to implement KRPKR or similar. And to be honest, implementing a tablebase lookup is really really basic. It's a simple matter of:

Is current position in the tablebases?
If so, what move do the tablebases say to make?
If not, continue as normal.

b
perpetualEditMonkey

Nova Scotia

Joined
14 Jan 06
Moves
10177
Clock
02 Mar 07
Vote Up
Vote Down

Originally posted by rubberjaw30
isn't Kramnik the GM that overloked a mate in one threat from his opponent?
i heard about that, but just thought my friends were lying to try and make the point that i should never resign
Yes, Kramnik is the GM and current World Champion that overlooked a mate in one.

A better lesson than "never resign" to take from this though is don't get so focused on your own plans that you overlook what your opponent is doing.

DF
Lord of all beasts

searching for truth

Joined
06 Jun 06
Moves
30390
Clock
02 Mar 07
2 edits
Vote Up
Vote Down

Originally posted by bosintang
Yes, Kramnik is the GM and current World Champion that overlooked a mate in one.

A better lesson than "never resign" to take from this though is don't get so focused on your own plans that you overlook what your opponent is doing.
Here is my most recent example of exactly that. In Game 3135368 I had clawed my way to an "easy" win against the French when I played 21. Rc7 intending 21. ... Qb8 22. Nc6 winning the queen but "forgot" about the decisive reply 21. QXf2+ and mate in 2.

The irony is I had seen his move much earlier but as soon as I got the "win" I totally forgot about all his attacking chances.

We all do it - it is the mark of humanity.

w
If Theres Hell Below

We're All Gonna Go!

Joined
10 Sep 05
Moves
10228
Clock
02 Mar 07
Vote Up
Vote Down

Originally posted by XanthosNZ
All modern engines can access Nalimov tablebases because while it may take a few lines to implement KBNK it would take a lot to implement KRPKR or similar. And to be honest, implementing a tablebase lookup is really really basic. It's a simple matter of:

Is current position in the tablebases?
If so, what move do the tablebases say to make?
If not, continue as normal.
indeed. it would be very bad programming to clutter the loop which such silly special cases as KNB. slower, messy, ugly coding. something an amateur would think of, but never a pro if he could avoid it.

well, there's the case of the gigantic windows switch, but it's still a stupid idea...

t

Joined
05 Apr 06
Moves
4798
Clock
02 Mar 07
Vote Up
Vote Down

Originally posted by XanthosNZ


Is current position in the tablebases?
If so, what move do the tablebases say to make?
If not, continue as normal.
I would also include code that checks if current position could be forced to won/drawn endgame found on tablebases.

D
Losing the Thread

Quarantined World

Joined
27 Oct 04
Moves
87415
Clock
02 Mar 07
Vote Up
Vote Down

Originally posted by torspo
I would also include code that checks if current position could be forced to won/drawn endgame found on tablebases.
The normal search does that, EGTB lookup happens at the end of the search.

Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.