Search found 195 matches

by Pio
Sat Nov 07, 2020 8:26 pm
Forum: Computer Chess Club: General Topics
Topic: Best way to get a big diversity of games in a given position
Replies: 7
Views: 365

Re: Best way to get a big diversity of games in a given position

Thanks, that's what I had in mind. Does the multiPV affect the depth of the variations calculated by the engines or does it just give a way to retrieve more variations? MultiPV takes more time to reach the same depth for an alpha-beta engine. An MCTS engine can return scores whenever but of course ...
by Pio
Sat Nov 07, 2020 2:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Best way to store games
Replies: 24
Views: 1077

Re: Best way to store games

Well, for games that do not start from the standard position the initial position (which in PGN would be in the FEN tag) would have to be stored. And yes, your method of encoding such a position would be a good choice for that. But is practice only a very small number of stored games will not start...
by Pio
Sat Nov 07, 2020 10:08 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Best way to store games
Replies: 24
Views: 1077

Re: Best way to store games

Well, I was specifically talking about databases of chess games, without making that explicit, and I am sorry if this caused any misunderstanding. But let me remind you of the OP's original question: I want to do a custom database of games played by engines. I am wondering how to store efficently t...
by Pio
Sat Nov 07, 2020 8:46 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Best way to store games
Replies: 24
Views: 1077

Re: Best way to store games

I know you are right 😀. The thing is that he wants to make a database and then there is no need for performance. It does not matter for the user if it takes an additional microsecond or two. It might however be important to store some puzzles with nine queens on the board. You obviously have no exp...
by Pio
Sat Nov 07, 2020 7:40 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Best way to store games
Replies: 24
Views: 1077

Re: Best way to store games

Dann Corbit wrote:
Sat Nov 07, 2020 3:26 am
Peperoni wrote:
Fri Nov 06, 2020 10:01 pm
Wow that's brilliant :D
That technique was invented by an Amiga chess program in the 1980's
Had no idea about it. Can you please send a link. Thanks!
by Pio
Sat Nov 07, 2020 12:09 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Best way to store games
Replies: 24
Views: 1077

Re: Best way to store games

Wow that's brilliant :D Thank you! It is actually very stupid and slow 😀 but I like it. My engine is extremely slow. It might be good for you however. Another nice property with my board representation is that for a database you could use the the first 64 bits that indicates the occupancies as the ...
by Pio
Fri Nov 06, 2020 11:30 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Best way to store games
Replies: 24
Views: 1077

Re: Best way to store games

Wow that's brilliant :D Thank you! It is actually very stupid and slow 😀 but I like it. My engine is extremely slow. It might be good for you however. Another nice property with my board representation is that for a database you could use the the first 64 bits that indicates the occupancies as the ...
by Pio
Fri Nov 06, 2020 11:17 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Best way to store games
Replies: 24
Views: 1077

Re: Best way to store games

If you want a failsafe simple way of storing a chess move in a byte is to use an existing correct legal move generator and save the index. To retrieve the move later you can generate all the legal moves from the position with the same generator and pick the move stored at the stored index position....
by Pio
Fri Nov 06, 2020 9:23 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Best way to store games
Replies: 24
Views: 1077

Re: Best way to store games

You are right, I forgot about that ! :oops: Thanks a lot for this very detailed explanation, looks very clear to me now :) Another more compact way of storing positions can be found here: http://talkchess.com/forum3/viewtopic.php?f=7&t=49575&p=538593&hilit=Compact#p538593 Another advantage by savin...
by Pio
Wed Oct 21, 2020 10:16 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Progress on Rustic
Replies: 120
Views: 12834

Re: Progress on Rustic

No not easy. If I step in the source code using a debugger and have to open an extra window to inspect a bitboard. Not easy enough. Usually when I have stepped through hundreds of lines of source code to find the bug everything is already too much. Sometimes you press accidentally a wrong button an...