Search found 2998 matches

by lucasart
Thu Jul 09, 2020 4:30 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Counting nodes correctly
Replies: 14
Views: 506

Re: Counting nodes correctly

At top of your recursive Pvs or alphabeta routine you probably have If depth <=0 then qsearch() You can count nodes++ just after this. In qsearch, you can do it at top of routine. This way, you are counting all visited nodes. Of course you can also count, legal move make, or anything else but what ...
by lucasart
Sat Jul 04, 2020 10:07 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: GCC 8.1 vs GCC 10.1
Replies: 21
Views: 760

Re: GCC 8.1 vs GCC 10.1

Compilation (same for both GCC and Clang): -O3 isn't always the fastest. What if you try -O2 instead? I've tried. O3 is faster. But not by much. Perhaps I should spill the guts out of O3 - O2, and try each optimisation in that set one by one, to see which one is useful. It could be a mixed bag of g...
by lucasart
Sat Jul 04, 2020 12:38 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: GCC 8.1 vs GCC 10.1
Replies: 21
Views: 760

Re: GCC 8.1 vs GCC 10.1

Right, those idiots try hard to make each new version of gcc slower than the one before. Fortunately we have expert-testers who expose them. Good job Gabor! I switched to clang long ago and never looked back. Though I did understand your irony on -s (which some people seem to confuse with -Os), my ...
by lucasart
Thu Jul 02, 2020 12:20 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: GCC 8.1 vs GCC 10.1
Replies: 21
Views: 760

Re: GCC 8.1 vs GCC 10.1

Things are worse than I thought. I tried to compile the new Raven 1.00. With GCC 8.1 everything's OK. With GCC 10.1.0-3 I get a 200 kB error file, the start of which is this: That's new with GCC 10 and actually caused by sloppy code. External variables should be declared as "external". Try compilin...
by lucasart
Thu Jul 02, 2020 4:25 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish has included WDL stats in engine output
Replies: 43
Views: 1425

Re: Stockfish has included WDL stats in engine output

Stockfish has included WDL stats in engine output. info depth 1 seldepth 1 multipv 1 score cp 110 wdl 355 620 25 nodes 111 nps 37000 tbhits 0 time 3 pv e2e3 info depth 2 seldepth 2 multipv 1 score cp 122 wdl 392 587 21 nodes 448 nps 149333 tbhits 0 time 3 pv e2e3 b7b6 info depth 3 seldepth 3 multip...
by lucasart
Thu Jul 02, 2020 3:38 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: GCC 8.1 vs GCC 10.1
Replies: 21
Views: 760

Re: GCC 8.1 vs GCC 10.1

Right, those idiots try hard to make each new version of gcc slower than the one before. Fortunately we have expert-testers who expose them. Good job Gabor! I switched to clang long ago and never looked back. Though I did understand your irony on -s (which some people seem to confuse with -Os), my ...
by lucasart
Mon Jun 29, 2020 4:44 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Please help with Plankton
Replies: 9
Views: 351

Re: Please help with Plankton

Another common bug in mid-range engines is wrong stalemate or even mate detection: if the position is so good or so bad that ALL moves are pruned away, the loop over the available moves is wrongly evaluated to "no legal move", i.e. mate or stalemate. The symptom is that the engine does something to...
by lucasart
Tue Jun 23, 2020 11:39 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Just made an account to say thank you!
Replies: 5
Views: 475

Re: Just made an account to say thank you!

Dear forum, it is time to say thank you all! I've coded my own engine (Java), it was working nicely on a level where you find like tens of thousands of it. But I was happy and continued to work on some more enhancements, transposition tables lately. This is where the problems arised: From time to t...
by lucasart
Sat Jun 06, 2020 11:58 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Just found a 55 elo bug in SlowChess 2.1
Replies: 26
Views: 2448

Re: Just found a 55 elo bug in SlowChess 2.1

Converting the pieces to an enum is a good idea to avoid mixing them up with squares. I've thought about it by doing this with pieces and squares, but using enums as indexes and converting back and forth between the enum and the integer value is incredibly annoying in Rust. Therefore I'm probably o...
by lucasart
Sun May 24, 2020 4:32 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: PGN standard
Replies: 44
Views: 3890

Re: PGN standard

I'd suggest replacing PGN with a JSON/YAML-based format. As it happens, I've been recently fiddling with the following position serialisation: { "players": [ { "pieces": [ "Ke1", "Ra1", "Rh1", "Bc1", "Bf1", "Nb1", "Ng1", "Qd1", "Pa2", "Pb2", "Pc2", "Pd2", "Pe2", "Pf2", "Pg2", "Ph2" ], "castlingFile...