Comment by roadside_picnic
Comment by roadside_picnic 13 hours ago
The hexagrams can be modeled with only 6-bits, but this does not contains enough information for a proper reading of I Ching which also need to account for line changes. So there are really 4 lines: young yin, old yin, young yang, old yang.
A fundamental part of I Ching reading is the implication that each present state is in the process of transforming to another.
Spot on! This is exactly why a simple Math.random() > 0.5 binary flip isn't enough for a proper simulation.You are right that we are mathematically dealing with base-4 logic (6, 7, 8, 9), not just base-2.While there are only 64 hexagrams ($2^6$), there are actually 4,096 possible casting results ($4^6$) when you account for the moving lines. My algorithm is designed specifically to capture the distinct probabilities for all 4 states.