Skip to content

realliance/libmahjong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libmahjong

libmahjong is a library for running games of Riichi Mahjong, originally built to power Riichi Royale, and later Gametable. The library uses a state machine to represent the status of the game, and allows for players (whether artificial or real) to interact at appropriate times.

Development

Getting Started

On Linux

Install the following dependencies:

On Windows

Windows requires Visual Studio 2019, which can be found here, and CMake, which can be found here

Clone the repository:

git clone git@github.com:realliance/libmahjong.git

Run the following commands within the project directory (note that these commands are for ):

# Bootstrap CMake Environment
cmake -S . -B build

# Or bootstrap CMake with tool building enabled
cmake -S . -B build -DPACKAGE_TOOLS=ON

# Or, if wanting to use Clang (Linux Only)

C=clang CXX=clang++ cmake -S . -B build

# Build Project
cmake --build build

Testing and Documentation

The test suite is located in tests/ and can be run with make -C build check

Attribution

The Riichi Mahjong 2016 Ruleset is redistributed from the European Mahjong Association under the CC BY-NC-SA 4.0. Their ruleset forms the basis for libmahjong.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •