Crafty Bishop Mobility: Computed vs. Actual

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

Moderator: Ras

GothicChessInventor

Crafty Bishop Mobility: Computed vs. Actual

Post by GothicChessInventor »

I have noticed that the precomputed sliding mobility of the Bishop in Crafty's code accounts only for "vacancies", not whether or not they are actual safe havens to plant the Bishop.

How difficult would it be to precompute mobility that also took into account the primary "robber" of mobility, enemy pawn squares? It would add a necessary dimension to the lookup, namely the bitmap of enemy pawns, but this could prove useful.

A bishop unmoved on c1 might look like it is mobile if it could reach d2, e3, f4, and g5, but if there were pawns on f6, e5, d4, and c3, is this Bishop truly mobile?

Just a thought.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty Bishop Mobility: Computed vs. Actual

Post by bob »

GothicChessInventor wrote:I have noticed that the precomputed sliding mobility of the Bishop in Crafty's code accounts only for "vacancies", not whether or not they are actual safe havens to plant the Bishop.

How difficult would it be to precompute mobility that also took into account the primary "robber" of mobility, enemy pawn squares? It would add a necessary dimension to the lookup, namely the bitmap of enemy pawns, but this could prove useful.

A bishop unmoved on c1 might look like it is mobile if it could reach d2, e3, f4, and g5, but if there were pawns on f6, e5, d4, and c3, is this Bishop truly mobile?

Just a thought.
you are using very old code, although the current version does not do this either. It is very expensive for the gain...