about king attack

Discussion of chess software programming and technical issues.

Moderator: Ras

Ferdy
Posts: 4852
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: about king attack

Post by Ferdy »

stegemma wrote: I think that is good if a piece attacks a square near to the king even if from that square it cannot directly give check.
You are correct of course, but be aware of some limitation. Less number of attackers but deadly (the one that can deliver check) compared to more attackers but just looking at the king. Daniel might improve his code on this.
User avatar
Rebel
Posts: 7514
Joined: Thu Aug 18, 2011 12:04 pm
Full name: Ed Schröder

Re: about king attack

Post by Rebel »

Daniel Anulliero wrote: Any lights ?
You might want to have look at Rebel's king safety and see if there is something useful for you in there.

http://www.top-5000.nl/authors/rebel/ch ... ING_SAFETY

As a general note I like to mention that's quite common to ONLY measure the pieces that attack the enemy king. If you look at my pseudo code you will notice I measure the defenders as well but they are given a lower priority.
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: about king attack

Post by Henk »

When there is no queen two rooks are dangerous when nearby opponent king without good pawn shelter. I see Skipper losing many games because of that.


Perhaps Queen and bishop on same diagonal is strong ? For instance a1-h8.
Daniel Anulliero
Posts: 773
Joined: Fri Jan 04, 2013 4:55 pm
Location: Nice

Re: about king attack

Post by Daniel Anulliero »

Thanks to all for the help !

To Ed: yes I read a lot of your documentation , great articles ! 😊
D Sceviour
Posts: 570
Joined: Mon Jul 20, 2015 5:06 pm

Re: In the endgame

Post by D Sceviour »

Steven Edwards wrote,
This was noted in the Chess 4.x report some four decades ago and it helps greatly with searching.
Do you have a link to the Chess 4.x report, or an example source of centroid calculation?