I Ching Oracle Simulator

Simulating 易經 Oracle

Mi'kail Eli'yah
8 min readMay 10, 2024
I Ching Table

I saw an elderly man divining on I-Ching with coins and got curious. He flipped 3 coins to derive a score and drew a line known as a yáo (爻), then he did it 6 times and drew the lines from bottom to upwards forming 6 lines known as a 卦 (guà) or hexagram. He followed on to interpret the readings from the 卦. Here we simulate what he did.

1. First the set up. 
This is to have the table reference as above.
Proceed with the routine:
2. With the query, derive the hexagram:
2.1. Throw coins 3x, if heads = score 3, if tails = score 2
2.2. Add up the scores of the 3 throws
2.2.1. if the score is 7 and 9, represents yang (draw yang line: "███████")
2.2.2. if the score is 6 and 8 represents yin (draw yin line: "███ ███")
2.2.3. do 6 rounds, and from bottom to up, draw the yin and yang lines
2.2.4. look for the hexagram table, and get the index
3. Interpret the hexagram with the reference.
* This part is complex, for simplicity, we will rely on some given translated text for now.
""" For a basis:
Top Line: represents the outcome or the future. It provides insight into the ultimate direction, developments or result of the situation.
5th Line: represents external influences or the context surrounding the situation. It can indicate…

--

--

Mi'kail Eli'yah
Mi'kail Eli'yah

No responses yet