Skip to content

Releases: DrCheeseFace/mahc

v1.7.0

08 Sep 14:28
Compare
Choose a tag to compare

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) --outputor -o

Full Changelog: v1.6.0...v1.7.0

v1.6.0

06 Sep 23:24
Compare
Choose a tag to compare

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
image

v1.5.2

02 Sep 23:28
Compare
Choose a tag to compare

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

image

v1.5.1

03 Aug 20:19
Compare
Choose a tag to compare

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

demo gif

v1.4.0

31 Jul 23:21
Compare
Choose a tag to compare

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

demo gif

v1.3.0

30 Jul 17:45
Compare
Choose a tag to compare

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

demo gif

v1.2.0

28 Jul 21:08
Compare
Choose a tag to compare

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
    demo gif

v1.1.0 it works now (mostly)

28 Jul 15:22
Compare
Choose a tag to compare

First fully functional release!

lil bug fix for hand shape validation from v1.0 -> v1.1

mrpb
ps if anyone knows how to make releases automagically, pls let me know