Search found 269 matches
- Thu Apr 08, 2021 2:14 pm
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
My mistake. Those gibberish numbers were Scores. After separating them into mg_value , eg_value I have the correct numbers. Now I need to study how exactly these Scores/Values are computed.
- Tue Apr 06, 2021 11:54 am
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
I need to learn more about threads now. Later I may work on search clone.
- Sat Apr 03, 2021 3:19 pm
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
I changed this function , but still getting gibberish scores. void pawn_entry_fill(const Position *pos, PawnEntry *e, Key key) { e->key = key; e->blockedCount = 0; e->score = pawn_evaluate(pos, e, WHITE) - pawn_evaluate(pos, e, BLACK); e->openFiles = popcount(e->semiopenFiles[WHITE] & e->semiopenFil...
- Fri Apr 02, 2021 11:51 am
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
I managed to get gamePhase correctly. By defining and using a global variable in evaluate.c file. But unfortunately now a similar way would not work for kingSafety. evaluate.c : [CODE1] Position g_pos; [CODE2] // evaluate_classical() is the classical evaluation function. It returns // a static evalu...
- Wed Mar 31, 2021 2:02 pm
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
To be more precise , I want this "pos->materialTable->gamePhase" to be correctly assigned it's right value.
- Wed Mar 31, 2021 10:03 am
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
As a workaround , can one call this cloned benchmark somewhere that it works ? like search.c where inits are done right ? So I can try another function I want to accomplish.
- Tue Mar 30, 2021 7:53 am
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
[...]
I am trying to produce a newer type of ANN. For this , I need to call "evaluate" from position.h to benchmark.c file. After that I may be able to train the network.
- Mon Mar 29, 2021 8:38 am
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
I added this line to Makefile , but still I get error as in previous code. [CODE BEFORE] ### Object files OBJS = benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o \ material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o \ search.o tbprobe.o thread.o timeman.o tt.o uci.o ucioptio...
- Sun Mar 28, 2021 11:39 am
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
I have access to gdb. After running cfish in gdb , program stays idle at zob_init() function. Also another observation is that calling "pos_is_ok" function in benchmak.c (with debug=yes) causes this error: usr/bin/ld: benchmark.o: in function `benchmark': /home/mehdi/Documents/Cfish-master/src/bench...
- Sat Mar 27, 2021 9:26 am
- Forum: Computer Chess Club: Programming and Technical Discussions
- Topic: Cfish: Function call problem (segmentation fault)
- Replies: 16
- Views: 2566
Re: Cfish: Function call problem (segmentation fault)
I tried this: void benchmark(Position *current, char *str) { char *token; char **fens; int numFens; psqt_init(); bitboards_init(); zob_init(); bitbases_init(); #ifndef NNUE_PURE endgames_init(); #endif // threads_init(); //options_init(); // search_clear(); Limits = (struct LimitsType){ 0 }; [...] O...