Coder Social home page Coder Social logo

zhouyi's Introduction

周易ZhouYi

演示地址

简介

一个快速算卦的小工具,将机械化的算卦过程程序化,仅有逻辑部分zhouyi.js和数据部分data.js

使用时先引用data.js再引用zhouyi.js,在js中直接调用zhouYi()即可,可选参数,默认随机占一卦,使用参数(由6789组成的6位数组,例如:[6,7,8,9,7,6])可查询固定卦的卦辞。

返回对象包含下列属性:

  • benGua 以6789形式保存本卦
  • benGuaName 本卦卦名
  • bianIndex 保存变爻序号的数组(从下至上)
  • content 最终得到的卦辞或爻辞,算卦的结果
  • drawBenGua 以01的形式保存本卦每一爻的阴阳,方便绘制本卦
  • drawZhiGua 以01的形式保存之卦每一爻的阴阳,方便绘制之卦
  • sumBian 变爻的总数
  • zhiGuaName 之卦的卦名

demo演示

注意

  1. 占卦并不能预知未来。仅仅是根据前人的经验提醒自己,趋利避害。
  2. 吉凶由人说。请保持必要的仪式感,明确需要占卦的事情再根据卦辞自己解读,本站仅提供周易的原文及翻译,并不解卦。
  3. 命越占越薄。请谨慎使用,原则上一事一占,不要以玩乐的心态随意测试。

演示地址

zhouyi's People

Contributors

zombielive avatar

Watchers

 avatar  avatar

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.