Skip to content

A JavaScript/TypeScript library for calculating Riichi (Japanese) Mahjong scores

License

Notifications You must be signed in to change notification settings

takumif/keisan-mahjong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keisan

"Just according to keisan (Translator's note: keisan means calculations)"

A JavaScript/TypeScript library for calculating Riichi (Japanese) Mahjong scores.

Usage

to be written

To get the typings for the Keisan classes, reference dist/index.d.ts in your files:

/// <reference path="path/to/dist/index.d.ts" />

Development

Stuff we use (only used for development purposes, so not really dependencies):

  • TypeScript
  • npm
  • Gulp
  • Jasmine
  • TypeDoc

Clone the repository and run npm install. Then you can run gulp build for transcompiling JavaScript, gulp typedoc for generating the TypeDoc, and gulp test for testing.

To-Do

  • Write tests for Hand, Meld and Yaku
  • Implement Hand methods
  • Implement Parser methods
  • Implement Tile methods
  • Check if honroutou doesn't overlap with other yaku
  • Write more yaku classes

Keisan is based on mahjong-tooltips-js by neetsdkasu and Riichi Mahjong Pointer by EmeraldCoder and blackmage.

About

A JavaScript/TypeScript library for calculating Riichi (Japanese) Mahjong scores

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published