Search found 411 matches

by kbhearn
Sun Dec 04, 2016 9:03 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Syzygy tablebases
Replies: 33
Views: 6396

Re: Syzygy tablebases

The other trouble with wanting just the interesting tables is often they have the uninteresting tables as dependencies. i.e. for a simple generator KRPP v KRP depends on all KRxx v KRx tables being generated first, however uncommon they are in practice and however unlikely they are to impact the tab...
by kbhearn
Sun Dec 04, 2016 4:59 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: draw endgame scaling
Replies: 9
Views: 2187

Re: draw endgame scaling

a couple factors come to mind: 1) most games probably don't get to the point where a small selection of pawnless endings being scaled down is relevant - pawnless endings are far rarer than endings with pawns (and many of your listed cases are probably scoring close enough to zero anyways without bei...
by kbhearn
Wed Nov 30, 2016 3:06 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: MinGW AlphaBlend
Replies: 28
Views: 3880

Re: MinGW AlphaBlend

I had thought truetype fonts had antialiasing by default - so i went to do some reading. This article seems to give a good overview on font rendering technology. https://www.smashingmagazine.com/2012/04/a-closer-look-at-font-rendering/ Short version: antialiased truetype has been around since window...
by kbhearn
Fri Nov 25, 2016 10:35 pm
Forum: Computer Chess Club: General Topics
Topic: What's the longest checkmate that makes sense?
Replies: 31
Views: 5807

Re: What is the longest checkmate that makes sense?

lyudmil says RRB vs RR, or RBN vs RN is relatively frequent. how many do you have ? same (mostly human otb) 2M game database 14 KRRBvKRR/KRRvKRRB - 8 won anyways 14 KRBNvKRN/KRNvKRBN - 7 won anyways so even less common than the earlier 2 mentioned. It's possible these things are more common in corr...
by kbhearn
Fri Nov 25, 2016 12:45 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Starting with king safety ?
Replies: 5
Views: 1128

Re: Starting with king safety ?

King safety is something that tends to be very different from engine to engine and goes a long way to define the 'personality' of the engine. There is no accepted 'right way'. It can be affected by the structure of the pawn shield, pawn storm, central pawn structure, attacks on squares, xray attacks...
by kbhearn
Fri Nov 25, 2016 2:25 am
Forum: Computer Chess Club: General Topics
Topic: What's the longest checkmate that makes sense?
Replies: 31
Views: 5807

Re: What is the longest checkmate that makes sense?

KBBvKN is also a general win, and probably also falls into the understandable category while sometimes exceeding 50 moves to win the knight with perfect play - however i also suspect that the defense in that ending is even more difficult than the attack (do we even have enough occurrences of it to g...
by kbhearn
Wed Nov 23, 2016 10:06 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hashing a quadboard from scratch
Replies: 10
Views: 3027

Re: Hashing a quadboard from scratch

What you're doing is close to the murmur algorithms but with less mixing https://github.com/aappleby/smhasher/wiki/MurmurHash3 Perhaps most importantly is the finalizing step where it mixes the compiled key together with 3 shift steps and 2 multiples (perhaps 2 shifts and 1 multiply would do - would...
by kbhearn
Sun Nov 13, 2016 8:59 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Starting with Hash Tables.
Replies: 74
Views: 9822

Re: Starting with Hash Tables.

Alright, i think you have two sources of confusion: 1) The dim statement you provided earlier does not provide an array with multiple data entries per index, but an array with multiple indexes. It's neither a proper table nor an entry. We'll get back to the functional options for this in a moment. 2...
by kbhearn
Fri Nov 11, 2016 12:19 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hash table in Swift?
Replies: 4
Views: 866

Re: Hash table in Swift?

a reply in tony's link references another question with a potentially better answer: http://stackoverflow.com/questions/26006710/typecast-unsafemutablepointervoid-to-unsafemutablepointerstruct-type/26006918#26006918 https://developer.apple.com/reference/swift/unsafemutablepointer https://developer.a...
by kbhearn
Thu Nov 10, 2016 11:25 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Starting with Hash Tables.
Replies: 74
Views: 9822

Re: Starting with Hash Tables.

A typical starting point for a TT entry might be 4 bytes zobrist hash key portion unused by the index (upper bits if using simple and-mask and power-of-2 entry hash table, lower bits if using multiplication to obtain the index(table size can be anything you please)) 2 bytes move 2 bytes score 1 byte...