mahjong_score 0.0.2 mahjong_score: ^0.0.2 copied to clipboard
It is a package that calculates the score of Mahjong. Scores are calculated based on "hu" and "fan". It should be noted that this package does not distribute points to each player, so you need to impl [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add mahjong_score
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
mahjong_score: ^0.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mahjong_score/abstract.dart';
import 'package:mahjong_score/base.dart';
import 'package:mahjong_score/fixed.dart';
import 'package:mahjong_score/score.dart';