{"id":5693,"date":"2011-03-19T17:54:22","date_gmt":"2011-03-19T22:54:22","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=5693"},"modified":"2011-03-19T17:54:22","modified_gmt":"2011-03-19T22:54:22","slug":"on-chinese-divination-methods","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=5693","title":{"rendered":"On Chinese Divination Methods"},"content":{"rendered":"<p>Years ago, in college, I used to do what I called &#8220;binge reads.&#8221;  One semester, I&#8217;d pick an author, and I&#8217;d read as much of that author&#8217;s work as I possibly could.  One semester, it might be Orson Scott Card.  Another semester, Larry Niven.  I was young, just twenty or so, and I had the energy and the interest to just <i>immerse<\/i> myself in an author like that.<\/p>\n<p>One semester, my binge author was Philip K. Dick.<\/p>\n<p>Philip K. Dick when you&#8217;re twenty is a revelation.  You&#8217;re twenty, you&#8217;re learning about the world and everything in it, and here comes this crazy prophet who just <i>sees<\/i> things differently than you do.  And to read a <i>lot<\/i> of PKD, <i>all<\/i> at once&#8230; well, it can blow the mind.<\/p>\n<p>I don&#8217;t know which semester of college it was.  Probably my third or fourth.  And I know it was before I read K.W. Jeter&#8217;s <b>Star Trek: Deep Space Nine<\/b> novel <i>Warped<\/i>, because I remember that I understood that <i>Warped<\/i> was a phildickian mindfuck in the Roddenberry universe.  Oh, it&#8217;s not <i>completely<\/i> a PKD <i>Trek<\/i> novel, else Quark would have saved the day and there would have been more sex.  But otherwise, <i>Warped<\/i> was very much the kind of <i>Star Trek<\/i> story Philip K. Dick would have told, which I think is why so many people dislike the novel.  Because they just didn&#8217;t <i>get<\/i> it.<\/p>\n<p>I&#8217;m wandering off topic.<\/p>\n<p>One of the first Philip K. Dick books I read was <i>The Man in the High Castle<\/i>, Dick&#8217;s Hugo Award-winning alternate history novel.  (Let me just note that the novel is rubbish as alternate history, but that&#8217;s <i>not<\/i> the reason to read <i>The Man in the High Castle<\/i>.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.allyngibson.com\/graphics\/iching.jpg\" height=\"150\" width=\"150\" align=\"right\" class=\"alignleft\" alt=\"I Ching\" \/>A defining aspect of <i>TMitHC<\/i> is the <i>I Ching<\/i>, the Chinese book of divination.  <a href=\"http:\/\/en.wikipedia.org\/wiki\/I_Ching\">Wikipedia can explain it better (and at more length) than I<\/a>; basically, the <i>I Ching<\/i> is an ancient Chinese system of divination that doesn&#8217;t so much tell the future as it explains the present and the forces that exist in the present that will shape the future.<\/p>\n<p>Virtually <i>all<\/i> of the novel&#8217;s major characters use the <i>I Ching<\/i> at some point.  Indeed, their major decisions are <i>driven<\/i> by it.  Business deals are made because of it.  Sexual encounters and cross country road trips happen on its advice.  An entire novel about <i>another<\/i> alternate history is written according to it.<\/p>\n<p>I, just being twenty, had no idea what the <i>I Ching<\/i> was.  Indeed, I&#8217;d never even <i>heard<\/i> of it before reading <i>The Man in the High Castle<\/i>.  But, as with all things, I was curious, and I eventually bought a copy.  (For the record, it was on Election Day, November 1995, at the Barnes &#038; Noble in Charlottesville, Virginia.  I also bought a copy of White Wolf&#8217;s first volume of their omnibus reprinting of Fritz Lieber&#8217;s Fafhrd &#038; the Gray Mouser stories there that day.  The truly random things one remembers.)<\/p>\n<p>I can&#8217;t say that I used the <i>I Ching<\/i> with any great regularity, or even with any purpose as Dick&#8217;s characters had.  It was just something to experiment with.  I learned the three-coin casting method, and at times I&#8217;d consult it, more often than not as a joke.  I did attempt to plot a story with it, as Dick had done, but I found I ended up with nonsense.  It was an interesting experiment, though, and as <a href=\"http:\/\/www.allyngibson.com\/?p=5314\">I was investigating alternate philosophies<\/a> in my developing atheism, I kept my copy of the <i>I Ching<\/i> around.  Indeed, I even bought a second copy for the office.<\/p>\n<p>A few years later, I picked up another book of Chinese divination, the <i>Ling Ch&#8217;i Ching<\/i> (or <i><a href=\"http:\/\/www.biroco.com\/yijing\/lingqijing.htm\">Ling Qi Jing<\/a><\/i>), the Spiritual Chess Classic.  It&#8217;s similar but different; where the <i>I Ching<\/i> uses coins or yarrow stalks for its casting, the <i>Ling Ch&#8217;i Ching<\/i> uses twelve wooden Chinese chess pieces, inscribed with special markings.  I went to a hardware store one day, bought twelve flat and round pieces of wood, inscribed them properly, and, again, experimented with the <i>Ling Ch&#8217;i Ching<\/i>.<\/p>\n<p>Interestingly, I probably use the <i>I Ching<\/i> now more than I ever did in my experimental days.  I have an <i>I Ching<\/i> app for my phone, and I sometimes use it for fun.  (At Farpoint, for instance, it suggested a dinner of ribs or buffalo wings.  Not what I had. \ud83d\ude09 )  If I get blocked at the office, where I often have to write like there&#8217;s no tomorrow, I&#8217;ll pull out my copy of <i>I Ching<\/i> there, open it up at random, and pull a visual image from the book to use as a springboard.  And, if I want to do a full casting, rather than throw coins, I&#8217;ve gone high-tech.<\/p>\n<p>I wrote an Excel spreadsheet.<\/p>\n<p>The three-coin casting method for the <i>I Ching<\/i> is, honestly, the worst you can use.  The percentages come up wrong.  Again, <a href=\"http:\/\/en.wikipedia.org\/wiki\/I_Ching_divination\">Wikipedia can explain better than I<\/a>, but basically, with the three-coin method, some results become far more likely than they should be with the traditional yarrow stalk method.  My spreadsheet simulates a four-coin method, which produces results mathematically identical to the yarrow stalk method.<\/p>\n<p>Is it cheating?  There&#8217;s nothing physical to it, after all.  I don&#8217;t think it&#8217;s cheating.  I wrote the formulas myself to make it work.  I wrote the underlying macro code.  The working methods are mine, it&#8217;s as personal as coins carried in a pocket or a cherished bag of yarrow stalks.  (For what it&#8217;s worth, I don&#8217;t even know what a yarrow stalk <i>is<\/i>.)<\/p>\n<p>Recently, I decided to do a similar spreadsheet for the <i>Ling Qi Jing<\/i>, and I finished the coding today.<\/p>\n<p>In concept, it&#8217;s actually much simpler.  There&#8217;s only the one casting method &mdash; you have twelve wooden coins, and you flip them.<\/p>\n<p>The <i>Ling Qi Jing<\/i> had three &#8220;rows&#8221; &mdash; Heaven, Man, and Earth.  Each row will have anywhere from zero to five &#8220;heads&#8221; showing.  This produces 125 (5 cubed) different trigraphs.<\/p>\n<p>My first thought was to figure each row separately, something along the lines of:<br \/>\n<code>Row = Int(Rnd * 2) + Int(Rnd * 2) + Int(Rnd * 2) + Int(Rnd * 2)<\/code><\/p>\n<p>This would produce, for each row, an integer from 0 and 4.<\/p>\n<p>But I decided this wasn&#8217;t right.  Oh, it was accurate, but it didn&#8217;t accurately model the way the <i>Ling Qi Jing<\/i> would actually be cast, with all twelve coins flipped at random.<\/p>\n<p>So I came up with a more complicated, but more accurate, procedure&#8230;<\/p>\n<p><code>' Define some variables.<br \/>\nDim iLoop As Integer<br \/>\nDim iLen As Integer<br \/>\nDim iPos As Integer<br \/>\nDim sOne As String<br \/>\n'<br \/>\n' Each coin will be flipped randomly.  First, we choose which coin it is --<br \/>\n' Heaven [A], Man [B], or Earth [C].  Then we flip it, and add its total<br \/>\n' (1 is up, 0 is down) to its row.  Then, we remove that coin from the<br \/>\n' possible coins to be flipped.  It's a little complicated, but it better<br \/>\n' models the way the coins are flipped in the Ling Qi Jing.<br \/>\n    sOne = \"ABCABCABCABC\"<br \/>\n    For iLoop = 1 To 12<br \/>\n    iLen = Len(sOne)<br \/>\n    iPos = Int(Rnd(iLen) + 1)<br \/>\n    If Mid(sOne, iPos, 1) = \"A\" Then Cells(3, 1) = Cells(3, 1) + Int(2 * Rnd)<br \/>\n    If Mid(sOne, iPos, 1) = \"B\" Then Cells(4, 1) = Cells(4, 1) + Int(2 * Rnd)<br \/>\n    If Mid(sOne, iPos, 1) = \"C\" Then Cells(5, 1) = Cells(5, 1) + Int(2 * Rnd)<br \/>\n    If iPos = 1 Then sOne = Right(sOne, (iLen - 1))<br \/>\n    If iPos = iLen Then sOne = Left(sOne, (iLen - 1))<br \/>\n    If iPos < iLen And iPos > 1 Then sOne = Left(sOne, (iLen - 1)) + Right(sOne, (iLen - 1))<br \/>\n    Next iLoop<\/code><\/p>\n<p>The commenting in the procedure explains it.  A random coin out of the twelve is flipped, set aside, and then a coin from what remains is flipped.  Thus there&#8217;s no <i>order<\/i> to the way the coins are flipped.  We aren&#8217;t artifically generating the Heaven line, then moving on to the next.<\/p>\n<p>All things considered, writing the <i>Ling Qi Jing<\/i> spreadsheet was far simpler than I expected.  Even that routine, which looks more than a little complicated, worked correctly the <i>second<\/i> time. \ud83d\ude09<\/p>\n<p>Just because I wrote a spreadsheet for the <i>Ling Qi Jing<\/i> doesn&#8217;t mean I&#8217;m suddenly going to start experimenting with it again.  But if I do, the tool is there, like with the <i>I Ching<\/i> spreadsheet I wrote two years ago.<\/p>\n<p>Neither the <i>I Ching<\/i> spreadsheet nor the <i>Ling Qi Jing<\/i> spreadsheets work on their own.  All they do is generate the hexagrams or trigraphs.  A companion book is necessary to explain what the results <i>mean<\/i>.<\/p>\n<p>If anyone wants to try this for the <i>I Ching<\/i> or the less-well-know <i>Ling Qi Jing<\/i>, perhaps as an aid to their own investigations of Chinese divination, I&#8217;ve <a href=\"http:\/\/www.allyngibson.com\/divination.zip\">uploaded a ZIP file to my website<\/a> with both Excel spreadsheets.<\/p>\n<p>Type your question or query into cell A1, press Alt-F8 to bring up the macros window, and run the appropriate macro.  The spreadsheet does its work, and it will show you your results.  Consult your book, and find your answers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Years ago, in college, I used to do what I called &#8220;binge reads.&#8221; One semester, I&#8217;d pick an author, and I&#8217;d read as much of that author&#8217;s work as I possibly could. One semester, it might be Orson Scott Card. Another semester, Larry Niven. I was young, just twenty or so, and I had the<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=5693\">Continue reading <span class=\"screen-reader-text\">&#8220;On Chinese Divination Methods&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[550,693,347],"class_list":["post-5693","post","type-post","status-publish","format-standard","hentry","category-life","tag-excel","tag-i-ching","tag-macros","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/5693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5693"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/5693\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5693"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}