thrw21
No user record in our sample, but thrw21 has activity below (stories or comments). Likely we have partial data — the full bulk-load will fill profiles in.
No user record in our sample, but thrw21 has activity below (stories or comments). Likely we have partial data — the full bulk-load will fill profiles in.
What do you think the average would be? No idea, I don't know what kind data OP stores (mostly few pieces? or lots of pieces? etc). You can probably tailor your format if you have more insights. But no matter what, you…
My objective was to reduce average size, the example calculation I made is the max size
After some more thinking and feedback: 2 bits per square 00 empty 01 white pawn 10 black pawn 11 other piece =128 bits 4 bit index of white king on board (one of the others) 4 bit index of black king for each "other…
And the full game history back to the most recent capture for draw by repetition. Ouch, I will leave this as an exercise to reader
https://news.ycombinator.com/item?id=39066345 You could probably modify this solution, I am already using 3 bits for piece type 0-3 rook queen bishop knight 4 Non-moved king (can castle) 5 moved king 6 pawn that moved 2…
I remembered current turn later but I could not think of your 2nd and 3rd point, you are right I guess you can't just take a look at board to see current game state, I was too focused on what game looks like while there…
But probably there can be a middle grounds. 1 bit for each square represent there is a piece on that pos so 64 bits then for each side, 4 bits to represent number of pieces and 3 bits for each piece to represent their…
248 is max in my case (actually later I noticed I could shave another 4 bits), if there are less pieces, there will be less data But probably with encoding your solution would be better
Number of chess pieces are dynamic so you wouldn't know if white pieces are over and next piece is black king (kings don't have a type bits) But now I think about it, instead of a separator I could simple use 4 bits to…
Bishops can only be in one of 32 spots but you need to know which one (ordering?). I was thinking of that but piece type is already 2 bits for 4 piece types so you can't have unique color bishop types without adding…
They are dead and the piece that got promoted is just another regular piece
Here is how I would it Board is 8x8, which is 6 bits. 4 piece type (rook, queen, knight, bishop. I will represent others (king and pawn) in a special way) is 2 bits. So 8 bits in total per piece I would not use a bit to…