Search found 3002 matches

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

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

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

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

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...
by lucasart
Fri May 22, 2020 3:39 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 15
Views: 1870

Re: c-chess-cli

Joerg Oster wrote:
Tue May 19, 2020 8:08 pm
A summary of the result at the end would be nice. :D
Done. Total WLD and score% shown after each game.
by lucasart
Fri May 22, 2020 1:25 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: PGN standard
Replies: 44
Views: 5074

Re: PGN standard

bob wrote:
Fri May 22, 2020 1:18 am
Probably won't happen, but it would be good to see a PGN 2.0 that cleans up some of the complaints and ambiguities.
Agreed. We need a new PGN format, and we can still call it PGN: Parsable Game Notation :lol:

The current one is about as parsable as modern C++.
by lucasart
Thu May 21, 2020 11:24 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: PGN standard
Replies: 44
Views: 5074

Re: PGN standard

What's the correct syntax for indicating black move ? 1.. e5 1... e5 1. ... e5 This one, 1... e5 8.2.2.2: Export format move number indications https://opensource.apple.com/source/Chess/Chess-110.0.6/Documentation/PGN-Standard.txt Thanks. I'll just use "1... e5" then. What confused me is that the s...
by lucasart
Thu May 21, 2020 12:20 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: PGN standard
Replies: 44
Views: 5074

PGN standard

What's the correct syntax for indicating black move ?

Code: Select all

1.. e5
1... e5
1. ... e5
by lucasart
Wed May 20, 2020 11:03 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 15
Views: 1870

Re: c-chess-cli

CppCheck flags out a lot of portability issues because "Passing NULL after the last typed argument to a variadic function leads to undefined behaviour." That's a problem with all these str_xxx defines. I want to write, for example, str_delete(&s1, ..., &sn), for arbitrary n >= 1. The "..." argument...
by lucasart
Wed May 20, 2020 12:42 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: c-chess-cli
Replies: 15
Views: 1870

Re: c-chess-cli

I tried fixed depth, tournament tc and Fischer bonus time. Fixed tournament tc: forgot to add the base time, after movestogo wraps aroung zero. what a dumbass... Fixed Fischer clock as well. Rule says increment must be added before the move. Most chess UI do it wrong, adding the increment after the...