Search found 3305 matches

by Sven
Tue May 12, 2020 9:26 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Simplifying code
Replies: 41
Views: 3522

Re: Simplifying code

Again. Focus on finding and fixing bugs. Not on language, not on speed. And I would not focus on simplification as well at this very moment, since you would probably replace old, complex, buggy code by new, less complex but still buggy code. Finding bugs and understanding why they happened will help...
by Sven
Tue May 05, 2020 7:28 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: M42 - C++ Library for Bitboard Attack Mask Generation
Replies: 1
Views: 456

Re: M42 - C++ Library for Bitboard Attack Mask Generation

Thanks for making this public!
For sliders the readme says:
These functions take the square of the piece as their first argument (a1 = 0, a2 = 1, …, h8 = 63)
but I guess it should be:
a1 = 0, b1 = 1, ..., h8 = 63
according to the source code. Right?
by Sven
Sat Apr 25, 2020 6:02 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Simplifying code
Replies: 41
Views: 3522

Re: Simplifying code

... [At the stage of my engine I should be glad it does not blunder. If it would only play acceptable moves it may win from engines that blunder] At the current stage of your engine I think you should focus on finding those severe bugs that make it play very weak, and change nothing else ;-) If sim...
by Sven
Fri Dec 06, 2019 4:52 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Include 4men syzygy in an engine
Replies: 11
Views: 2237

Re: Include 4men syzygy in an engine

Please, read carefully the code. *mapping = file_size(fd); Ah, so map_t is an integer type, I expected a structure ... and both "map_t" and "mapping" are names that I do not associate with something of integer type :wink: In that case the code looks correct - apart from the missing error handling o...
by Sven
Wed Dec 04, 2019 10:09 pm
Forum: Computer Chess Club: Tournaments and Matches
Topic: Elephant Rides
Replies: 16
Views: 1792

Re: Elephant Rides

Graham Banks wrote:
Mon Dec 02, 2019 8:54 am
Standings after Round 12

9.5 - Jumbo 0.7.0 64-bit
7.5 - Jikchess 0.02 64-bit
Graham Banks wrote:
Wed Dec 04, 2019 9:03 pm
Standings after Round 18

14.0 - Jikchess 0.02 64-bit
11.5 - Jumbo 0.7.0 64-bit
How is it possible to add 6.5 points in 6 games?
by Sven
Wed Dec 04, 2019 9:59 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Include 4men syzygy in an engine
Replies: 11
Views: 2237

Re: Include 4men syzygy in an engine

Code: Select all

void *data = malloc(*mapping);
read(fd,data,*mapping);
should be something like

Code: Select all

void *data = malloc(sizeof(*mapping));
read(fd,data,sizeof(*mapping));
otherwise it allocates and reads almost a random number of bytes
by Sven
Fri Nov 29, 2019 11:26 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Probing the transposition table at depth 0
Replies: 5
Views: 1092

Re: Probing the transposition table at depth 0

Depth 0 actually belongs to qsearch. Since you don't store anything in the TT during qsearch you also can't expect to find anything with depth 0 there. You will find some transpositions where the current position at depth 0 had already been visited at a higher depth, but that will have a minor effec...
by Sven
Sat Nov 09, 2019 6:21 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minic raw speed
Replies: 29
Views: 5197

Re: Minic raw speed

The only scoring effort that can have performance impact is most probably SEE. Do you apply SEE to all captures, or only to "losing" captures? That sounds like a weird question to me :oops: I define which capture is good or bad using SEE, how can I know a capture is good before SEE ?. If the moving...
by Sven
Sat Nov 09, 2019 6:14 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minic raw speed
Replies: 29
Views: 5197

Re: Minic raw speed

Minic is sorting all moves as soon as TT move is not a beta cut-off You could benchmark how often your first move cuts off if it isn't a TT hit, this will probably be something like 50-70%. Means, in all those cases, sorting the full move list is unnecessary because you're only going to use the top...
by Sven
Tue Oct 29, 2019 9:37 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Ubuntu Shell file
Replies: 8
Views: 2240

Re: Ubuntu Shell file

Look wrote:
Tue Oct 29, 2019 1:29 pm
What to do ?

Code: Select all

:~$ source cd_test.sh
But why would you want to do that?