Releases: DrCheeseFace/mahc
Releases · DrCheeseFace/mahc
v1.7.0
File output and breaking refactors
calc::get_hand_score
method signature changed to not take raw string input. as seen below
pub fn get_hand_score(
hand: Hand, //previously a string
dora: Option<Vec<TileGroup>>, //previously a string instead of TileGroup
tsumo: bool,
riichi: bool,
doubleriichi: bool,
ippatsu: bool,
haitei: bool,
rinshan: bool,
chankan: bool,
tenhou: bool,
honba: HonbaCounter,
) -> Result<Score, HandErr
- File output flag added (may be jank)
--output
or-o
Full Changelog: v1.6.0...v1.7.0
v1.6.0
DORA FLAGS, MAJOR REFACTORS AND MPSZ NOTATION GALORE
What's Changed
- Ryuuiisou and Kokushi Musuo validation bug fixes
- Add Score and Payment structs by @gondolyr in #6
- Added support for mpsz notation by @DrCheeseFace in #8
--dora
flag now accepts dora indicator tiles instead of a number of dora tiles- A bunch more test cases
Full Changelog: v1.5.2...v1.6.0
v1.5.2
RYUUIISOU and KOKUSHI FIXES
What's Changed
- Ryuuiisou and kokushi validations have been fixed. Previously there weren't checks for if tiles were souzu in ryuuiisou and kokushi was completely wrong. WE NEED BETTER TESTING!!!
- build: address most clippy lints by @gondolyr in #2
- Improve code style by @gondolyr in #3
- Add documentation and reorganize types into modules by @gondolyr in #5
New Contributors
Full Changelog: v1.5.1...v1.5.2
v1.5.1
Jay that Sawn
- added
--json
flag for stdout in json format. mmm yes this is now useful - Full Changelog: v1.4.0...v1.5.0
v1.4.0
File stdin
- File stdin
- lil bit of refactoring. calculatorErr moved into HandErr enums
- stdout formatting changed for consistency
- Full Changelog: v1.3.1...v1.4.0
v1.3.0
YAKUMANS AND VALIDATIONS GALORE
- Tenhou and Chiihou yakuman flags given
- validation on combinations on yaku flags. like rinshan kaihou, double riichi, haitei etc
- Full Changelog: v1.2.0...v1.3.0
v1.2.0
RUH ROH RAGGY
- Fixed fatal crashing when hand tiles and a winning tile are not specified when using the caculator in normal mode. Not sure how I came this far without spotting this error until now
- nicer stderr printouts
- Full Changelog: v1.1.1...v1.2.0