GithubHelp home page GithubHelp logo

divination's Introduction

divination-赛博占卜

使用程序模拟了蓍草占筮法的全过程.

s1. 准备50根竹签

s2. 取出一根象征太极, 放在最上边;

s3. 将剩下的49根竹签用左右手随机分成两份, 左手为天, 右手为地, 放在桌子的左右两边;

s4. 从象征"地"的右边取出1根放在最下面表示"人";

s5. 对左右的竹签进行分组, 4个为一组, 将剩余的(1,2,3,4)根与象征"人"的1根放在一起;

s6. 将象征"人"的那一堆竹签放在一边, 将"天","地"合并, 再重复 s3,s4,s5 两遍 (等于一共做3遍, 成为三变);

s7. 将象征"天", "地"的竹签合并, 此时的数量应为24,28,32,36 (不是就是上面做错了);

s8. 将剩余竹签数量除以4得到6,7,8,9, 此时6为老阴, 7是少阳, 8为少阴, 9是老阳;

s9. s8得到的是"本卦", 其中老阴, 老阳会变卦为阳和阴;

s10. s1-s9得到一卦的一爻, 一卦六爻, 一爻三变, 按照初爻、二爻、三爻、四爻、五爻、六爻的顺序从上向下排列就得到了你此次卜卦的结果;

值得注意的是, 按照传统的卜卦, 阴阳的概率并非50:50, 老阴0.06, 少阳0.31, 少阴0.44, 老阳0.19. 即阳爻的概率约为63%, 而阴爻的概率仅有37%

divination's People

Contributors

zhaozijie2022 avatar

Stargazers

 avatar

Watchers

 avatar

divination's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.