Special cases

Discussion of chess software programming and technical issues.

Moderator: Ras

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

Re: Special cases

Post by Henk »

If there is a bishop in a corner protecting his own pawn on the next adjacent square you have a problem. I mean white bishop an a1 protecting white pawn on b2 etcetera. Of course that does not work for a white bishop on a8 or h8.
Last edited by Henk on Sat Dec 19, 2015 9:46 am, edited 1 time in total.
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Special cases

Post by Henk »

What about any piece on the border pinned by a bishop ?
User avatar
stegemma
Posts: 859
Joined: Mon Aug 10, 2009 10:05 pm
Location: Italy
Full name: Stefano Gemma

Re: Special cases

Post by stegemma »

Henk wrote:What about any piece on the border pinned by a bishop ?
You just forget chessboard greater than 8 rows/columns or... with negative indexes, like a-1, a-2 and so on. You forget some kind of 3D or multiple dimensions chessboard too and even the case of chessboard where square has been bad mounted, so that a1 is in the middle (this happens sometime with Rubik cubes).

I'm afraid that chess programming has nothing more important to say today, after the Kasparov defeat...

:(
Author of Drago, Raffaela, Freccia, Satana, Sabrina.
http://www.linformatica.com
Dann Corbit
Posts: 12828
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Special cases

Post by Dann Corbit »

Henk wrote:What about any piece on the border pinned by a bishop ?
Besides the obvious hard pin:
[d]R3bk1r/8/8/8/B7/8/8/3K4 b - -

There is also a near-pin or pragmatic pin:
[d]R3bq2/7k/8/8/B7/8/8/3K4 b - -

In order to understand what it is you are asking more clearly, could you supply some positions that illustrate the problem?
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Special cases

Post by Henk »

In these cases the piece was pinned by a rook and not a bishop.

'Pinner' is the piece that does not allow another piece to move.
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Special cases

Post by Henk »

stegemma wrote:
Henk wrote:What about any piece on the border pinned by a bishop ?
You just forget chessboard greater than 8 rows/columns or... with negative indexes, like a-1, a-2 and so on. You forget some kind of 3D or multiple dimensions chessboard too and even the case of chessboard where square has been bad mounted, so that a1 is in the middle (this happens sometime with Rubik cubes).

I'm afraid that chess programming has nothing more important to say today, after the Kasparov defeat...

:(
There is a kolder chess tournament next week so I have to be prepared.
Dann Corbit
Posts: 12828
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Special cases

Post by Dann Corbit »

Henk wrote:In these cases the piece was pinned by a rook and not a bishop.

'Pinner' is the piece that does not allow another piece to move.
If that is the definition you are using then nothing on the edge is pinned by a bishop for obvious reasons. OK, I am just going to say it. There can't be anything behind it.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.