Search found 2923 matches

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: 762

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: 14
Views: 370

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: 14
Views: 370

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: 14
Views: 370

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: 762

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: 464

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: 464

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: 6098

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: 6098

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...
by lucasart
Mon Jan 07, 2019 12:20 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Simplest way to implement quick and dirty lazy smp
Replies: 14
Views: 1724

Re: Simplest way to implement quick and dirty lazy smp

I fail to see how this is easier. Honestly, managing subprocesses, and communications via pipes, is a lot more complicated in my experience (especially on POSIX systems, with the fork logic being quite mind bending). And it's hideous, from a design/coding standpoint. Simply start threads in an id_l...