NAME
Game::Mahjong - Mahjong, the four-player tile game, under the Chinese Official competition rules
VERSION
Version 0.01
SYNOPSIS
use Game::Mahjong;
my @set = Game::Mahjong::Tiles::set(); # 144 kind ids
Game::Mahjong::Tiles::code_of(5); # "m5"
Game::Mahjong::Tiles::is_terminal(9); # 1, the nine of characters
my @hand = Game::Mahjong::Notation::parse('123m 55p EEE');
DESCRIPTION
The engine for Mahjong under the World Mahjong Organization's competition rules (2006), the ruleset the European federations play: 144 tiles including the eight flowers, chow, pung and kong claims, robbing the kong, the eighty-one scoring elements in twelve grades, and a minimum of eight points to win.
It is the engine behind the Mahjong at https://peer2peergames.com.
METHODS
dl_load_flags
Returns 0x01 so the shared object is loaded with its symbols global, which is what lets another XS module link against the table. Not for calling.
SEE ALSO
Game::Mahjong::Tiles, Game::Mahjong::Notation, Game::Mahjong::Error
AUTHOR
LNATION <email@lnation.org>
LICENSE AND COPYRIGHT
This software is Copyright (c) 2026 by LNATION <email@lnation.org>.
This is free software, licensed under the Artistic License 2.0.