Skip to content

aaronquantexa/scala-mahjong

Repository files navigation

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

Using the repository

To compile, run:

gradlew build

To run tests:

gradlew test

About

Basic Mahjong game coded in Scala

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published