Code Monkey home page Code Monkey logo

mahjong's Introduction

Mahjong

计算向听数,科学麻将者必备单品!

Welcome to report issue by github!

Clone the repo and Run

- npm install
- npm run dev

If you are a beginner, you can clone the repo and just run the commands above, but if you wanna change something and restart, please use the command below. e.g., your 8090 port is occupied, and you want to change the port to be used.

- npm run start

Use by website

  • Address: https://paxyqi.github.io/mahjong/
  • Input attention: Plz input 14 cards as your hand cards, if you only input 13 cards, we will give you a rand card as next round hand card. If your input cards account is not 13/14, your input will not be calculated.
  • Input demo:
    24m1556p2459s4572z
    6777888p2367s11z and your hand cards will be look like 🀞🀟🀟🀟🀠🀠🀠🀑🀒🀕🀖🀀🀀🀑(1向聴). The far right card 🀑 is the rand one, and it will be different whenever you click the Calc button.

mahjong's People

Contributors

gaojianli avatar paxyqi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

xiaoxice

mahjong's Issues

Improve user experience.

At present, we support user input 13/14 hand cards to calculate.
If user input 13 hand cards, we will rand a new card as the next round input card. But this input will be inserted into the 13 cards, which is difficult to be noticed.
In order to reduce user troubles, we will separate the rand card in the right.

Got Incorrect Syanten Result

input: 6777888p2367s11z
got result: 3向聴
should be: 1向聴
in this case, draw 1/4/5/8s then discard 6p gets a Ready Hand/ richii.

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.