Skip to content

ffalt/mah

Repository files navigation

Mah

A Mahjong Solitaire Game

The original open source version of many Mahjong games out there. Completely free, no ads, no tracking.

Play it here

build with html5, svg, angular

license test developer known vulnerabilities codebeat badge

Features:

  • 56 boards to play

  • 12 different tile/piece image sets; light & dark

  • 8 game backgrounds, themes; light & dark

  • 3 difficulties

  • Automatic save & restore of game state

  • English, Deutsch, Nederlands, Português, русский, Español

    Want to help translate Mah? Please use https://crowdin.com/project/mahjong

Build Config

The default game name is "Mah Jong", to change it

  • copy file custom-build-config.json.dist to custom-build-config.json
  • edit the name in custom-build-config.json to your desired app name

Development server

Run npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory. Use npm run build:prod for a production build.

Running tests

Run npm run test to execute the unit tests via Jest.