Search found 85 matches

by mvanthoor
Tue Mar 31, 2020 8:22 pm
Forum: Computer Chess Club: General Topics
Topic: Minic version 2
Replies: 6
Views: 300

Re: Minic version 2

Congrats :) Maybe a suggestion which is used in Rust (and in the Stash engine as well). It can be beneficial to put your header files in an "include" folder, and your source files in an "src" folder; even dividing the src folder into multiple subfolders, where you gather modules that belong together...
by mvanthoor
Tue Mar 31, 2020 10:49 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minic raw speed
Replies: 29
Views: 4100

Re: Minic raw speed

Back on the same subject ... In fact Minic has less cache misses and less branch prediction misses than stockfish ... Perft 6 of start pos in 4.7sec, so move gen + copy make at 25Mnps .... probably not the issue It depends on the speed of your CPU. Perft 6 from the starting position runs at 4.4 sec...
by mvanthoor
Tue Mar 31, 2020 7:25 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hash entry/bucket memory usage optimization
Replies: 4
Views: 223

Re: Hash entry/bucket memory usage optimization

I prefer a custom set of artificial positions that test most of the movegen gotchas that can be validated instantly at much lower depths. As said: I ran the entire perftsuite.epd file (in which I've included all the positions on this page: https://www.chessprogramming.org/Perft_Results), and they a...
by mvanthoor
Mon Mar 30, 2020 11:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hash entry/bucket memory usage optimization
Replies: 4
Views: 223

Hash entry/bucket memory usage optimization

Hello again :) Thanks for the assistance in the other topic with regard to getting the hash table working. I've now been trying to optimize the memory usage of the entries. Before, an entry looked like this: zobrist_key: u64 leaf_nodes: u64 depth: u8 17 bytes, which Rusts pads to 24 (next multiple o...
by mvanthoor
Mon Mar 30, 2020 5:16 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Engines playing Musketeer Chess, good price
Replies: 132
Views: 14708

Re: Engines playing Musketeer Chess, good price

Years ago I was looking into other games besides chess. I also tried Arimaa for a time, but ended up not liking it. Too positional, not enough tactics. I love tactical positions with sacrifices that make the position explode and end the game with a bang. Arimaa doesn't give you a lot of tools to mak...
by mvanthoor
Mon Mar 30, 2020 3:04 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Where to enter/read position into hash table in perft?
Replies: 25
Views: 762

Re: Where to enter/read position into hash table in perft?

I just realized: The other way around, actually. - Calculate the index from the 7 most significant bytes of the zobrist key. - Save the 1 "sacrificed" least significant byte and the depth byte in the entry (2 bytes) - Save the leaf node u64 in the entry (8 bytes). That would give me a 10 byte entry,...
by mvanthoor
Mon Mar 30, 2020 12:58 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Where to enter/read position into hash table in perft?
Replies: 25
Views: 762

Re: Where to enter/read position into hash table in perft?

In Qperft I work the depth into the key, so that the same position at a different depths hashes to a different location. For search you would not want that, because you want to accept any probe that has a depth that is equal or higher. But for perft you can only use equal depth, as unlike search sc...
by mvanthoor
Mon Mar 30, 2020 11:24 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Where to enter/read position into hash table in perft?
Replies: 25
Views: 762

Re: Where to enter/read position into hash table in perft?

Oh, sorry, my mistake. I thought this was what you printed under 'execution speed', (for the same perft leaves/sec would be strictly proportional nodes/sec), and that you actually counted the generated leaves. And I misread the number of digits, thinking that it dropped from 280 Mnps to 114 Mnps, w...
by mvanthoor
Sun Mar 29, 2020 9:14 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Where to enter/read position into hash table in perft?
Replies: 25
Views: 762

Re: Where to enter/read position into hash table in perft?

Hi, Where do you derive the nps drop from? I don't calculate nps right now; I only calculate how many leaves are found per second. As the hash makes counting faster, leaves per second will be higher. I don't care too much about NPS; I think leaves/second or time to depth are more important. I'm just...
by mvanthoor
Sun Mar 29, 2020 8:45 pm
Forum: Computer Chess Club: General Topics
Topic: New RomiChess, soon
Replies: 24
Views: 1379

Re: New RomiChess, soon

Tal lives again! Freakin' bazooka, those are some attacking games. Does it do that with black as well? If it does and it has a strength adjustment, this could become my favorite engine to play against. I love engines that create sharp games and sometimes even make somewhat unsound, but interesting m...