Skip to content

MChjong 0.11.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 13:45
· 61 commits to main since this release
0.11.0
ab62997

Added

  • Add Hong Kong mahjong: the Hong Kong Mahjong Association's general rules with a three-faan minimum, a ten-faan limit and liability payments, four players with 144 tiles including flowers or 136 tiles without them, sixteen-hand matches paid with scoring cards, built-in computer players, manual tile handling at ordinary tables, replays, statistics and a handbook chapter.
  • Add Zung Jung mahjong: Alan Kwan's standard v3.3 scoring with 44 patterns, four players with 136 tiles and no flowers, sixteen-hand matches paid with scoring cards, built-in computer players, manual tile handling at ordinary tables, replays, statistics and a handbook chapter.
  • Add an experimental API for other mods to add mahjong variants, described in the Variant API guide, with the engine published on Maven Central to compile against. MChjong discovers their variant modules at startup and disconnects a client that lacks a variant the server uses. When a variant's mod is removed, its statistics and replays are kept but hidden, the other records remain usable, and tables in a match of that variant return to the lobby.
  • Add operator commands for autoplay, decision and result timing, unattended play, deterministic shuffles, prepared Riichi mahjong walls, computer-only matches, and seating players and maid companions before starting a match in place.
  • Keep per-player statistics for every variant on the server, filled once from existing replays, with a profile page and server-wide leaderboards opened from the lobby or with /mchjong profile and /mchjong leaderboard.

Changed

  • Refine the built-in Riichi mahjong computer player heuristics with unseen-tile wait-risk decomposition, connected-shape and dora-adjacency tiebreakers, closed-hand opening discipline, opportunity-weighted wait and ippatsu evaluation, kan indicator externalities and placement-aware endgame decisions. In three-player Riichi mahjong, evaluate distant hands faster, preserve connected shapes and account for the extra draw from North extraction.
  • Save replays and tables in a format that earlier versions of MChjong cannot open. Replays and tables saved by earlier versions remain readable.
  • Size the tiles of each variant after the tile sets used on real automatic tables, and fit hands, walls, rivers and melds to the new sizes.
  • Give each table sound effect its own subtitle written like the vanilla subtitles of each language, instead of reusing action labels and terms such as the former Chinese wording for placing called tiles.
  • Redesign the interface after the table: screens are felt in a wooden frame, controls are tiles with the primary action in brass and destructive actions in lacquer red, chosen rules and pages are turned face up, and results show the hand's tiles side by side, the scoring rows on a receipt, the points in large figures and the hand grade as a seal.
  • Show maid companions with the face of their current model, and title the table's storage screen with the table's name.
  • Remove the instruction lines from the lobby, the table and the results, together with the personal setting that showed them.
  • Rework the immersive view: larger tiles, each seat as a small portrait with its name beside that player's hand and the opposite seat above the far wall, your own melds, flowers and North tiles lying face up in the row of your hand, points along the console, the indicators and deposits in a corner box, the quick toggles on the left edge, and controls and results at exactly the seated size at every window size.
  • Add the Display Panel Text setting for the immersive table and replays. Facing You keeps the round and remaining tile count on the display panel and shows each seat's wind or status and points on its card, with a second line for the side seats.
  • Turn the viewer's own standing hand toward the camera in the seated view for every variant, while other players still see it upright.
  • Remove the tile counts and status lines such as the current turn from the seat tooltips, together with the display setting for the counts.
  • Show a button's label as its tooltip only while the label is shortened, and drop the long tooltips of the table menu and the round box.
  • Shorten messages and descriptions that listed conditions, defaults and consequences beyond what the controls show, such as the table placement message and the end-match confirmation.
  • Keep the replays closed while the player is seated in a match in progress, and drop the replay button from the table menu.
  • Show the hand on the result page with the tiles' body below their faces, in the middle of a taller result frame.
  • Let the host change the variant while computer players are seated. Computer players stay as the new variant's built-in computer player, and maid companions leave their seats unless the new variant accepts them.

Removed

  • Remove the candidate analysis shown for the viewer's decisions in Riichi mahjong replays; replays only play back what happened.

Fixed

  • Improve supporting text contrast on hovered interface rows.
  • Open computer player choices beside the seat's button without leaving the lobby.
  • Turn the computer player button's triangle upward while its menu is open, and make hovered lobby links stand out from the felt.
  • Keep the scoring-card drawer button clear of an expanded settlement at ordinary tables, where a full payments page covered it.
  • Keep the replay browser usable when an index entry is unreadable by skipping the affected entry.
  • Count the point sticks and scoring cards already in the stick drawers when checking whether the mahjong boxes can supply a new match, as the drawers are only topped up to the starting kit.
  • Show maid companions by their translated names in the room roster, the seat cards and replays, instead of raw translation keys.
  • Keep tile engravings in their drawn proportions on every tile size, both in the interface and on the table, instead of stretching them to the shape of the tile.
  • Stop tooltips from flickering while a table screen refreshes.
  • Keep the replay's player names clear of the control bar and the export button.
  • Keep the replay controls on screen in small windows by giving the wall and hand controls a row of their own when one row does not fit.
  • Give result page tabs enough room for their full labels when space permits, both at the table and in replays.
  • Draw riichi and honba sticks in their real proportions with their counts beside them, instead of squeezing them into small blocks.
  • Keep quick toggles visible throughout active hands in every variant, and keep announcements, status messages, and turn controls clear of the seated player cards.
  • Fix invitations in MCR, Sichuan mahjong, and Taiwanese mahjong rooms. Show player names in the scoring-card drawer at Sichuan mahjong and Taiwanese mahjong tables and return players to the table when they close it during play.
  • Center action-button captions and tile previews on the button face in the immersive view at MCR, Sichuan mahjong, and Taiwanese mahjong tables, so they clear the lower edge.
  • Keep the lobby's rule list at its scroll position and on the same page after changing the variant.
  • Show the personal presets' kinds in a side rail so they read as the level above the server and local sources.