Mahjong API written in Scala in a functional style.
Inspired by Scalachess
Contains functionality to:
- Initialise and play a game of the Malaysian variant of Mahjong.
- This variant is for 3 players, who are able to each perform, chow, pung and kong actions.
- Uses a custom piece set for the Malaysian variant, most notably there is only one suit of pieces.
- Contains an iterative algorithm for replacing flower pieces
To compile, run:
gradlew build
To run tests:
gradlew test