Search found 17067 matches

by bob
Mon Jun 29, 2020 3:51 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Simplifying code
Replies: 52
Views: 5770

Re: Simplifying code

Yes looks better. But I saw a video about monads recently. Although i am not sure I understand it. Don't know anything about category theory. So maybe I could use something like a monad to hide some obvious recurring tests. Monad is a functor plus a flatten operation I understood. Already unfamilia...
by bob
Mon Jun 29, 2020 3:46 am
Forum: Computer Chess Club: General Topics
Topic: TCEC Question
Replies: 46
Views: 1330

Re: TCEC Question

One more point. More games == smaller standard deviation. Which means the samples will be closer to the middle value. If you run an infinite number of samples, you will end up exactly on the midpoint. 1000 games has a pretty high standard deviation. 100 significantly larger. 1 game? pretty much a ra...
by bob
Tue Jun 23, 2020 6:53 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Syzygy 6 dtz problem
Replies: 3
Views: 290

Re: Syzygy 6 dtz problem

I put 'em all in the same directory. On linux you could scatter them all over and use symbolic links. In looking at the distributed syzygy code, you can pass tb_init a string of directories separated by ":" (colon) if you want to scatter files in different directories or on different drives...
by bob
Sat Jun 20, 2020 9:16 pm
Forum: Computer Chess Club: General Topics
Topic: Auto Brute Force
Replies: 10
Views: 565

Re: Auto Brute Force

As a note you might get a sequence of moves that will lead to that position, but you will never get "the" series that was actually played...
by bob
Fri Jun 19, 2020 2:03 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perft speed and depth questions
Replies: 43
Views: 1875

Re: Perft speed and depth questions

minor addition... each "bucket needs to have the low order 6 bits of the address as 000000, which makes each bucket lie on an address that starts a 64 bit block of memory that gets read in in one cache fill cycle. If it spans a 64 bit address break, it will take two cache fill cycles which is bad fo...
by bob
Thu Jun 18, 2020 3:25 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perft speed and depth questions
Replies: 43
Views: 1875

Re: Perft speed and depth questions

I am not sure how pin detection and such enhances move generation since it is rare when you consider all pieces on the board. However, I DO have a legal move generator that is used whenever the side on move is in check, as that is more efficient than generating all pseudo-legal moves and then using ...
by bob
Tue Jun 16, 2020 7:32 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perft speed and depth questions
Replies: 43
Views: 1875

Re: Perft speed and depth questions

This is very helpful, thankyou! I like your approach of bencmarking the Perft based on what is useful for the final engine and not just trying to minimise the time. Was your final time of 78 seconds based on compiling for a 32 bit or 64 bit platform? I am compiling for 32 bit. If i compile for 64 b...
by bob
Tue Jun 16, 2020 4:26 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Removing bugs from bug free functions
Replies: 20
Views: 961

Re: Removing bugs from bug free functions

That isn't a bug-free function most likely. Typically when you can add code and hide the bug, look for uninitialized data that moves around on the stack depending on what extra code you insert... In your case, function parameters can be wrong as well. IE you reference arrays using subscripts that mi...
by bob
Sat Jun 13, 2020 5:11 pm
Forum: Computer Chess Club: General Topics
Topic: These aren't the solutions you are looking for
Replies: 7
Views: 340

Re: These aren't the solutions you are looking for

I'm not sure of the point here. White is lost. I'm not a fan of "the move that pushes the loss out as far as possible" for a test position...
by bob
Sat Jun 13, 2020 5:04 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: PGN standard
Replies: 44
Views: 3458

Re: PGN standard

I agree. I started with English descriptive. Was very difficult for me to convert (mentally) to algebraic/SAN. But once I did, my conclusion was it was much better. I found it difficult to handle things qb-n3 and such. Particularly kn-f3. With a knight at e1 and g1 later in the game... My only issue...