Search found 2924 matches

by lucasart
Wed May 01, 2019 5:10 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pointers in C++, please help
Replies: 17
Views: 1166

Re: Pointers in C++, please help

I played around with it, and figured out how to do it with a natural array. However, I personally find the notation more confusing. u08 mvsNW[64][8]; //... u08 (*mvsB[])[64][8] = { &mvsNW, &mvsNE, &mvsSW, &mvsSE }; // ... auto & mvs = *mvsB[i]; m->ts = mvs[m->fs][j]; I also found another way to do ...
by lucasart
Wed Apr 24, 2019 11:19 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Could someone do a Demolito compile please ?
Replies: 17
Views: 2127

Re: Could someone do a Demolito compile please ?

He would! :> demolito-20190206_sse41-tp.zip Thanks to erbenzaehler and AppVeyor, Demolito now has automatically generated Windows compiles with each commit: * go here: https://github.com/lucasart/Demolito/commits/master * select the commit you want (eg. the latest), and click the green check mark, ...
by lucasart
Sun Apr 21, 2019 10:25 am
Forum: Computer Chess Club: General Topics
Topic: Contrived position for perft
Replies: 15
Views: 1482

Re: Contrived position for perft

if my engine is not wrong those are the results: 1: 60 2: 2608 3: 113742 4: 4812099 5: 202902054 6: 8419356881 Sorry, but your engine is wrong. Perft 2 of the position "r3k2r/1bp2pP1/5n2/1P1Q4/1pPq4/5N2/1B1P2p1/R1R1K2R b KQkq c3 0 1"is 2659. Well if you mistype the FEN and search a different positi...
by lucasart
Sun Apr 21, 2019 7:55 am
Forum: Computer Chess Club: General Topics
Topic: Contrived position for perft
Replies: 15
Views: 1482

Re: Contrived position for perft

Does it cover all the possibilities? Has someone done a better one already? Any suggested changes? r3k2r/1bp2pP1/5n2/1P1Q4/1pPq4/5N2/1B1P2p1/R3K2R b KQkq c3 0 1 Thanks nice one. pins are an important source of bugs. you should add more pins. Bed time, I will work on that tomorrow! :D How aboud this...
by lucasart
Sun Apr 21, 2019 5:12 am
Forum: Computer Chess Club: General Topics
Topic: Contrived position for perft
Replies: 15
Views: 1482

Re: Contrived position for perft

Michael Sherwin wrote:
Sun Apr 21, 2019 3:10 am
Does it cover all the possibilities? Has someone done a better one already? Any suggested changes?

Thanks
nice one. pins are an important source of bugs. you should add more pins.
by lucasart
Sun Apr 21, 2019 1:51 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Could someone do a Demolito compile please ?
Replies: 17
Views: 2127

Re: Could someone do a Demolito compile please ?

Tirsa's compile was used to test it here: http://ccrl.chessdom.com/ccrl/404FRC/ Thanks for testing Demolito. I'm a surprised to see it so high in the ranking. Yet, the elo gap to SF is monstruous, which indicates that too few engines support Chess960. It's a shame, because I like 960. It's a bit we...
by lucasart
Sat Apr 20, 2019 7:25 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: No standard specification for Perft
Replies: 22
Views: 2293

Re: No standard specification for Perft

If you want perft to be a representative measure of the speed of an engine it should indeed focus more on capture-only generation. Perthaps it would be useful to define a function perft(N, M) which does N ply of full-width search followed by M ply of captures only. Most people use perft only for te...
by lucasart
Sat Apr 20, 2019 1:46 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: No standard specification for Perft
Replies: 22
Views: 2293

Re: No standard specification for Perft

If you want perft to be a representative measure of the speed of an engine it should indeed focus more on capture-only generation. Perthaps it would be useful to define a function perft(N, M) which does N ply of full-width search followed by M ply of captures only. Most people use perft only for te...
by lucasart
Sun Jan 13, 2019 9:49 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Writing bugs
Replies: 66
Views: 6809

Re: Writing bugs

State is fine but it should be encapsulated in an object. Like so: rg=random_generator(seed) r=rg.rand() The state maintained by the rg object could be much more complicated than a single number (this would likely be the case for a cryptographically secure random generator). The rg object completel...
by lucasart
Sun Jan 13, 2019 12:37 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Writing bugs
Replies: 66
Views: 6809

Re: Writing bugs

Coming back to the thread-safety problem, I think the real design mistake of C was to define rand(). Instead, a better way, is to make it re-entrant: rand(&seed). That way the ownership of the seed is pushed to the caller, and if the caller wants to make seed thread local, or chooses to use a global...