syzygy1 / Cfish

C port of Stockfish
GNU General Public License v3.0
137 stars 59 forks source link

Integrate Cfish in Xcode #151

Closed GiordanoVicoli closed 4 years ago

GiordanoVicoli commented 4 years ago

Hi,

Hi just created an Objective C project in Xcode and I added Cfish files. When I try to compile I have several errors in the nnue.c file:

Below an example; The error is: "No member named 'dirtyPiece' in 'struct Stack'"

Square ksq = orient(c, square_of(c, KING)); DirtyPiece *dp = &(pos->st->dirtyPiece); for (int i = 0; i < dp->dirtyNum; i++) { Piece pc = dp->pc[i]; if (type_of_p(pc) == KING) continue; if (dp->from[i] != SQ_NONE) removed->values[removed->size++] = make_index(c, dp->from[i], pc, ksq); if (dp->to[i] != SQ_NONE) added->values[added->size++] = make_index(c, dp->to[i], pc, ksq); } }

is there anyone able to give me some suggestion?

Many thanks and regards, Giordano

syzygy1 commented 4 years ago

On Apple, you can compile with "make". If that is not what you want, ask someone who knows Xcode.