Code of Chiron for Detection of Pawn Blockages

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

Moderator: Ras

uaf
Posts: 98
Joined: Sat Jul 31, 2010 8:48 pm
Full name: Ubaldo Andrea Farina

Re: Code of Chiron for Detection of Pawn Blockages

Post by uaf »

stegemma wrote:

Code: Select all

int fixed_pawn[8][8] = {0};
This syntax seems very strange to me. Does this instruction just initialize the very first item in the array or does it initialize the whole array to zeroes? I think that this istruction is not correct, maybe a memset should be more portable or i'm wrong?
That way of initializing is correct and it's standard.
When you initialize less elements than those contained in the matrix, or array, all the remaining elements are automatically initialized to zero.
Uri Blass
Posts: 10798
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

Re: Code of Chiron for Detection of Pawn Blockages

Post by Uri Blass »

rodolfoleoni wrote:A clear answer to those who thought Chiron could be a derivative...

Bravo Ubaldo!
I do not see the relevance of your post.

I do not claim that Chiron is a derivative of another program of a different author but
having some original code is not a proof that a program is not a derivative.