r/tinycode • • Apr 30 '20

Game 6-bit playing card deck

1er 6:
an exquisite dice-to-deck
mnemonic for 3 dice
d6α d6β
⚅-⚄ +3 ⚅-⚄ +6
⚃-⚂ +2 ⚃-⚂ +3
⚁-⚀ +1 🎲 ⚁-⚀ +0 🎲
🎲 1+0=10
d6γ
⚄ ♠ ⚃ ♦ ⚂ ♣ ⚁ ♥
⚅: ⚀:
BLK+BIG RED+LIL
if α xor β if α && β
is ⚅ or ⚀: is ⚅ or ⚀:
♥ or ♠ joker
then:
A-C-E if α is o-d-d
K-I-N-G if αβ's e-v-e-n
Q-U-E-E-N if αβ's o-d-d
J-A-C-K if α is e-v-e-n

png

10 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/raelepei Jun 18 '20

Meh, it's just a large lookup-table that's easier to read. It's easier to prove correct and implement correctly. Neither approach can be memorized very well. I don't care that using a table to replace the logic might be considered "cheating" :P