Point calculator for Japanese Richii Mahjong. This calculator ignores specific hand shape and only records the Han and Fu of each win.
Requirement:
NodeJs >= 16.0.0
- Connection to a postgres database (Optional)
- Step into the project folder, install all the required packages and generate database connection client.
cd .\mj-calc\
npm install
npx prisma generate
-
(Optional) To develop with a local database and experiment with IO from database
- Set up a local postgres database.
- Copy and rename
mj-calc\.env.sample
tomj-calc\.env
and fill in with the database connection string - Run
npx prisma migrate dev
to apply all migrations to local database
-
Start the server with
npm start
For more instructions on development with a Create-React-App, refer to mj-calc\README.md
日本立直麻将的点数计算器。该计算器忽略了指定手牌型,而只记录每次获胜的番数和符数。