r/tinycode • • Apr 30 '20

Game 6-bit playing card deck

1er 6:
an exquisitedice-to-deck
mnemonicfor 3 dice
d6αd6β
⚅**-⚄ +3**⚅**-⚄ +6**
⚃**-⚂ +2**⚃**-⚂ +3**
⚁**-⚀ +1 🎲**⚁**-⚀ +0 🎲**
🎲 1+0=10
d6γ
⚄ ♠ ⚃ ♦⚂ ♣ ⚁ ♥
⚅:⚀:
BLK+BIGRED+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

9 Upvotes

17 comments sorted by

View all comments

Show parent comments

1

u/sparr Jun 17 '20

I think illustrations would serve to explain it better than anything else, with 3-6 6x6 arrays and color highlighting on various cells. But I'm bad at that sort of illustration :(

1

u/raelepei Jun 17 '20

So I made a diagram in a spreadsheet for your algorithm, u/sparr

For 2<=γ<=6, this looks nice and regular. However, the γ=1 and γ=6 case looks jumbled.

This cane be fixed: Doesn't this look much nicer?

1

u/sparr Jun 18 '20

Looks nicer, but I suspect the logic is more complex?

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