Here is the problem: if I remove it then I get this error message:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
gcc Documents/firstchess.c -o firstchess
Documents/firstchess.c: In function ‘Eval’:
Documents/firstchess.c:312:5: warning: large integer implicitly truncated to unsigned type [-Woverflow]
unsignedchar value_piece[6] = {VALUE_PAWN, VALUE_KNIGHT, VALUE_BISHOP, VALUE_ROOK, VALUE_QUEEN, VALUE_KING};
^
Documents/firstchess.c:312:5: warning: large integer implicitly truncated to unsigned type [-Woverflow]
Documents/firstchess.c:312:5: warning: large integer implicitly truncated to unsigned type [-Woverflow]
Documents/firstchess.c:312:5: warning: large integer implicitly truncated to unsigned type [-Woverflow]
Documents/firstchess.c:312:5: warning: large integer implicitly truncated to unsigned type [-Woverflow]
Documents/firstchess.c: In function ‘ComputerThink’:
Documents/firstchess.c:615:5: warning: large integer implicitly truncated to unsigned type [-Woverflow]
score = Search(-MATE, MATE, max_depth, &mm3);
^
Documents/firstchess.c:615:5: warning: large integer implicitly truncated to unsigned type [-Woverflow]
Documents/firstchess.c: In function ‘main’:
Documents/firstchess.c:696:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[256]’ [-Wformat=]
sscanf (buf, "%s", &s);
^