Emilio
Thanks for checking this.
What does addRand function do/how?
Can you explain it a little more?
Code:
int
addRand (int argc, char *argv[])
{
/* Simple "srand()" seed: just use "time()" */
unsigned int iseed = (unsigned int)time(NULL);
srand (iseed);
double randuno = (((double)rand()/RAND_MAX)) * 100;
int randunofinal = (int)randuno;
return randunofinal;
}
When I compile in Windows using Geany.21 I get
gcc -Wall -c "secondchess.c" (in directory: C:\Program Files (x86)\Arena\Engines\SecondChess\pocopito-secondchess-v0.1-35-gd1633e5\pocopito-secondchess-d1633e5)
secondchess.c: In function 'Gen':
secondchess.c:531: warning: implicit declaration of function 'IsInCheck'
secondchess.c:532: warning: implicit declaration of function 'IsAttacked'
secondchess.c: In function 'GenCaps':
secondchess.c:604: warning: unused variable 'row'
secondchess.c: In function 'Eval':
secondchess.c:873: warning: implicit declaration of function 'addRand'
secondchess.c: In function 'TakeBack':
secondchess.c:1433: warning: unused variable 'i'
secondchess.c: In function 'perft':
secondchess.c:1790: warning: unused variable 'tmpMove'
secondchess.c:1785: warning: unused variable 'value'
Compilation finished successfully.
Thanks