Rook safety?

Discussion of chess software programming and technical issues.

Moderator: Ras

Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Rook safety?

Post by Henk »

How to measure rook safety? Maybe by evaluating the rook pawnshield. For instance when Rook on a1 count whether squares b2, b3 or c2 are protected. Next count whether rook being able to move. Or maybe count whether Rook might become victim of bishop pair.

By the way according to M. Carlsen (Norwegian chess player) evaluation has only four factors: Pawn structure, King safety, Activity and Material.
So looks like he does not count rook safety or queen safety (Queen trapped on b7 or on middle of the board).

By the way there is also bishop safety. Bishop on c4 or b5 easily attacked by pawns. Or knight safety (Ng4 attacked by pawn on h5)
tcusr
Posts: 325
Joined: Tue Aug 31, 2021 10:32 pm
Full name: tcusr

Re: Rook safety?

Post by tcusr »

this carslon guy doesn't know what he's talking about
User avatar
Bo Persson
Posts: 257
Joined: Sat Mar 11, 2006 8:31 am
Location: Malmö, Sweden
Full name: Bo Persson

Re: Rook safety?

Post by Bo Persson »

Henk wrote: Wed Feb 23, 2022 2:08 pm How to measure rook safety? Maybe by evaluating the rook pawnshield. For instance when Rook on a1 count whether squares b2, b3 or c2 are protected. Next count whether rook being able to move. Or maybe count whether Rook might become victim of bishop pair.

By the way according to M. Carlsen (Norwegian chess player) evaluation has only four factors: Pawn structure, King safety, Activity and Material.
So looks like he does not count rook safety or queen safety (Queen trapped on b7 or on middle of the board).

By the way there is also bishop safety. Bishop on c4 or b5 easily attacked by pawns. Or knight safety (Ng4 attacked by pawn on h5)
Perhaps Carlsen is more interested in offensive than defensive?

Surely, a rook that cannot move or a trapped queen will lower his Activity points. And soon also the Material!
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Rook safety?

Post by Henk »

Also King safety and Pawn structure are not independent. For instance when pawn shield only contains isolated pawns it will be bad for king safety and pawn structure. So will be counted twice. By the way if a good bishop is captured mobility/activity and material will both decrease. Also when down in material king safety will usually become worse.

Best is to count factors which are independent.
User avatar
Ras
Posts: 2696
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Rook safety?

Post by Ras »

Henk wrote: Wed Feb 23, 2022 2:08 pmHow to measure rook safety? Maybe by evaluating the rook pawnshield.
Ideally, you keep the rook on a1 to protect the pawn on a2, but the real trick is to also keep the bishop on c1 so that the b2 pawn stays protected. Then the rook is totally safe, and you don't need the search to determine the outcome.
Rasmus Althoff
https://www.ct800.net
User avatar
mvanthoor
Posts: 1784
Joined: Wed Jul 03, 2019 4:42 pm
Location: Netherlands
Full name: Marcel Vanthoor

Re: Rook safety?

Post by mvanthoor »

Ras wrote: Wed Feb 23, 2022 3:49 pm Ideally, you keep the rook on a1 to protect the pawn on a2, but the real trick is to also keep the bishop on c1 so that the b2 pawn stays protected. Then the rook is totally safe, and you don't need the search to determine the outcome.
I almost died... :lol:
Author of Rustic, an engine written in Rust.
Releases | Code | Docs | Progress | CCRL
User avatar
Look
Posts: 382
Joined: Thu Jun 05, 2014 2:14 pm
Location: Iran
Full name: Mehdi Amini

Re: Rook safety?

Post by Look »

"Rook to the open file" is a chess expression.
Farewell.
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Rook safety?

Post by Henk »

Ras wrote: Wed Feb 23, 2022 3:49 pm
Henk wrote: Wed Feb 23, 2022 2:08 pmHow to measure rook safety? Maybe by evaluating the rook pawnshield.
Ideally, you keep the rook on a1 to protect the pawn on a2, but the real trick is to also keep the bishop on c1 so that the b2 pawn stays protected. Then the rook is totally safe, and you don't need the search to determine the outcome.
You need to protect c2 too against a knight. So an opponent knight on d4 is bad for rook safety.
Maybe safety of pieces is less important than king safety but even losing one pawn is enough to lose the game.
A blocked pawn is bad for pawn safety. But even when it can move it can not move back. So it might create a weak square when it has to move.
User avatar
Ras
Posts: 2696
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Rook safety?

Post by Ras »

Henk wrote: Wed Feb 23, 2022 7:16 pmYou need to protect c2 too against a knight.
Sure, just develop the knight from b1 to a3, problem solved. It's protected by the pawn on b2 which is protected by the bishop on c1 which is protected by the rook on a1 which is shielded against everything. However, most other engine authors have something called "search" to take care of that.
Rasmus Althoff
https://www.ct800.net
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Rook safety?

Post by Henk »

Ras wrote: Wed Feb 23, 2022 7:26 pm
Henk wrote: Wed Feb 23, 2022 7:16 pmYou need to protect c2 too against a knight.
Sure, just develop the knight from b1 to a3, problem solved. It's protected by the pawn on b2 which is protected by the bishop on c1 which is protected by the rook on a1 which is shielded against everything. However, most other engine authors have something called "search" to take care of that.
Counting material is not enough for rook safety. Would be the same as not counting king safety for counting king capture or check mate should be enough. Also in hyper bullet games search may not be deep enough.