cbarrick@lemmy.world to General Programming DiscussionEnglish · 10 months agoEncoding tic-tac-toe in 15 bitscbarrick.devexternal-linkmessage-square4fedilinkarrow-up110arrow-down10cross-posted to: hackernews@lemmy.smeargle.fans
arrow-up110arrow-down1external-linkEncoding tic-tac-toe in 15 bitscbarrick.devcbarrick@lemmy.world to General Programming DiscussionEnglish · 10 months agomessage-square4fedilinkcross-posted to: hackernews@lemmy.smeargle.fans
minus-squarecbarrick@lemmy.worldOPlinkfedilinkEnglisharrow-up4arrow-down1·10 months agoOP here! People are rightfully pointing out that this can be compressed further. My challenge to you: Implement a compressed representation along with the get_cell and set_cell methods, without resorting to lookup tables! Also, check out Alejandra’s blog at https://goose.love/! (And yeah, you need 12 or 13 bits, not 10, if you don’t want to eliminate symmetries.)
OP here! People are rightfully pointing out that this can be compressed further.
My challenge to you: Implement a compressed representation along with the get_cell and set_cell methods, without resorting to lookup tables!
Also, check out Alejandra’s blog at https://goose.love/!
(And yeah, you need 12 or 13 bits, not 10, if you don’t want to eliminate symmetries.)