Couple more ideas

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Lyudmil Tsvetkov
Posts: 6052
Joined: Tue Jun 12, 2012 12:41 pm

Re: Gandalf cross

Post by Lyudmil Tsvetkov »

vincenegri wrote:
Lyudmil Tsvetkov wrote: Fischer used to fianchettoe kingside in more than half of his games.
Only when black. Pulling up Fischer's games in a database:

As white: 558 games, of which 66 feature a king-side fianchetto (defined as a bishop on g2 and a pawn on g3 on or before move 15)

As black: 396 games, of which 236 feature a king-side fianchetto.

Bobby sure loved his KID :)

Of course this is due to Bobby being a 1.e4 guy… so perhaps the issue is that one should only fianchetto in closed/semi-closed openings.
You might also want to check numbers for Kasparov, Smyslov, Petrosian, etc., but also for practically every world champion after 1945.
Certainly king fianchettoes there are more than for the average GM.

The reason why many players with white do not fianchettoe their bishops is of course the availability of e4, leading to Ruy Lopez and Sicilian.

However, I think the last word with white king fianchettoes is still not said, and in a while people will discover that in many more lines white kingside fianchettoe gives a more decisive advantage than otherwise.

You amaze me with your stats, how are you able to do that?
You provide very valuable information.
PK
Posts: 893
Joined: Mon Jan 15, 2007 11:23 am
Location: Warsza

Re: Gandalf cross

Post by PK »

Perhaps the problem with fianchetto is that evaluation function must deal with two completely different scenarios, and we haven't found a way to reconcile them yet. There is Grunfeld/Catalan scenario, where we want to keep the f-pawn on its initial square and use the fianchettoed bishop to exert pressure to opponent's queenside. On the other hand, there is a KID scenario, where the fianchetto formation is built and then destroyed for the greater good of the kingside attack. Then there are hybrids, like Botvinnik's triangle (c4-d3-e4) which plays much like a KID, or Leningrad Dutch, where White can prevent forming the ideal formation with a fast d4-d5.

Giving a static bonus for a fianchetto helps in the Grunfeld scenario, but backfires in the KID scenario. I think that at the beginning a rule like "apply static fianchetto bonus only when d and e pawns are not in direct contact, i.e. not rammed and not attacking each other" might make sense. If this works, we may start thinking about the hybrids.
Lyudmil Tsvetkov
Posts: 6052
Joined: Tue Jun 12, 2012 12:41 pm

Re: Gandalf cross

Post by Lyudmil Tsvetkov »

PK wrote:Perhaps the problem with fianchetto is that evaluation function must deal with two completely different scenarios, and we haven't found a way to reconcile them yet. There is Grunfeld/Catalan scenario, where we want to keep the f-pawn on its initial square and use the fianchettoed bishop to exert pressure to opponent's queenside. On the other hand, there is a KID scenario, where the fianchetto formation is built and then destroyed for the greater good of the kingside attack. Then there are hybrids, like Botvinnik's triangle (c4-d3-e4) which plays much like a KID, or Leningrad Dutch, where White can prevent forming the ideal formation with a fast d4-d5.

Giving a static bonus for a fianchetto helps in the Grunfeld scenario, but backfires in the KID scenario. I think that at the beginning a rule like "apply static fianchetto bonus only when d and e pawns are not in direct contact, i.e. not rammed and not attacking each other" might make sense. If this works, we may start thinking about the hybrids.
Hi Pawel.

Did not fianchettoe work in Rodent?
Or maybe some problems appeared again.

I think it is part of the bigger picture, with all terms being tuned together, interactions with king safety, etc. For example, SF likes to fianchettoe its queenside bishop, but not its king bishop. Why?
Because its queen bishop usually attacks on the long diagonal the enemy king shelter, and the engine gets bonus for this. It also likes to develop its king bishop to d6 or c5, where it attacks the enemy king shelter, but on g7 does not do so.

So you need an additional bonus for king fianchettoe, but also tuned to reflect interactions with other terms, not in the last place also mobility and psqt.
Lyudmil Tsvetkov
Posts: 6052
Joined: Tue Jun 12, 2012 12:41 pm

Re: Gandalf cross

Post by Lyudmil Tsvetkov »

Also, kingside fianchettoe is closely king safety related.

Of course, part of the importance of king fianchettoe is due to the bishop attacking enemy pieces on the long diagonal and controlling the center, and part to making the king shelter stronger. I think the split between the two is somewhere around 50-50.

So, kingside fianchettoe is closely king safety related and I would even treat it as a king safety term.
King safety is not all about pawn shelter and storming pawns, it is also about kingside fianchettoe, king binds, etc. A shelter involving a king fianchettoe is 30% more difficult to attack and destroy than in the usual case, so a big benefit from it. Not only you have a minor piece within the shelter, but this minor piece and the pawns around it complement each other by controlling squares of different colour.

So nothing more natural than to give a king safety bonus for king fianchettoe.

I would be surprised if this would not work in SF after repeated attempts. It will of course, as this is a sound term. It is only a matter of implementation and tuning of parameters. And the first thing I would like to tune king fianchettoe bonus with is pawn shelter bonus/penalty.
vincenegri
Posts: 73
Joined: Wed Feb 11, 2015 9:19 am

Re: Gandalf cross

Post by vincenegri »

Lyudmil Tsvetkov wrote: You amaze me with your stats, how are you able to do that?
You provide very valuable information.
It's very easy if you have a large database and some good software that allows sophisticated queries. SCID will do it, but Chess Assistant and Chessbase are solid commerical options. Large databases of historical games are available legitimately for free on the internet (since the unannotated games are not subject to copyright) but imho if your budget allows it I would pay for a subscription service that takes the hassle out of keeping your database up to date.

If you are interested in following current trends or just historical research such a tool is invaluable. You can effectively investigate questions like "how often do people manage to win R&B vs R in practice?"

And of course, structured query tools allow the games from engine tests to be analysed in a way that would be simply impossible by hand. Imagine playing through 100,000 games yourself looking for certain pawn structures!!
PK
Posts: 893
Joined: Mon Jan 15, 2007 11:23 am
Location: Warsza

Re: Gandalf cross

Post by PK »

As for fianchetto eval in Rodent: general bonus for pieces on bishop's diagonal, works like a charm once fianchetto is in place. Right now I'm investigating whether a frequency of moves like g3/g6 can become greater without decreasing playing strength.
Lyudmil Tsvetkov
Posts: 6052
Joined: Tue Jun 12, 2012 12:41 pm

Re: Gandalf cross

Post by Lyudmil Tsvetkov »

PK wrote:As for fianchetto eval in Rodent: general bonus for pieces on bishop's diagonal, works like a charm once fianchetto is in place. Right now I'm investigating whether a frequency of moves like g3/g6 can become greater without decreasing playing strength.
Yeah, yeah, yeah, every second move you can play g3/g6. :)
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Couple more ideas

Post by Dann Corbit »

Some analyzed positions from this thread:

Code: Select all

rnbqk1nr/pppp1ppp/4p3/8/1b4P1/3P4/PPP1PP1P/RNBQKBNR w KQkq - acd 33; acs 600; bm Bd2; ce -22; pm Bd2; pv Bd2 Be7;
r4rk1/ppqn1pp1/2pbpn1p/8/2PP4/3Q1NN1/PP1B1PPP/3RR1K1 w - - acd 35; acs 600; bm Ne4; ce 19;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