{"id":18770264,"url":"https://github.com/usumerican/smallmahjong","last_synced_at":"2026-02-27T04:03:25.727Z","repository":{"id":256890232,"uuid":"856354847","full_name":"usumerican/smallmahjong","owner":"usumerican","description":"A simplified Japanese mahjong without melding and honor tiles","archived":false,"fork":false,"pushed_at":"2024-10-19T04:47:25.000Z","size":1383,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-07T19:19:04.761Z","etag":null,"topics":["javascript","mahjong"],"latest_commit_sha":null,"homepage":"https://smallmahjong.pages.dev/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usumerican.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-12T12:48:44.000Z","updated_at":"2024-10-31T08:57:50.000Z","dependencies_parsed_at":"2024-09-13T16:51:13.874Z","dependency_job_id":"c89aba53-ce71-42a2-974f-54705023f951","html_url":"https://github.com/usumerican/smallmahjong","commit_stats":null,"previous_names":["usumerican/smallmahjong"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usumerican%2Fsmallmahjong","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usumerican%2Fsmallmahjong/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usumerican%2Fsmallmahjong/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usumerican%2Fsmallmahjong/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usumerican","download_url":"https://codeload.github.com/usumerican/smallmahjong/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231713090,"owners_count":18415194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","mahjong"],"created_at":"2024-11-07T19:18:46.487Z","updated_at":"2025-10-26T07:13:38.249Z","avatar_url":"https://github.com/usumerican.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Small Mahjong\n\nA simplified [Japanese riichi mahjong](https://en.wikipedia.org/wiki/Japanese_mahjong) without melding and honor tiles\n\nRepo: https://github.com/usumerican/smallmahjong\n\n## Playables in browser\n\n- [English](https://smallmahjong.pages.dev/en/)\n- [Japanese](https://smallmahjong.pages.dev/ja/)\n\n## Rules\n\nRef: https://en.wikipedia.org/wiki/Japanese_mahjong\n\n### Overview\n\nThis application is played with 4 or less players (you and AI opponents).\n\nIt uses 108 tiles of 27 different types.\n\nEach tile type has a suit and a rank.\n\n- Suits: ▲ (red Angle), ■ (green Box), ◉ (blue Circle)\n- Ranks: 1, 2, 3, 4, 5, 6, 7, 8, 9\n\nTile groups are\n\n- Twins: 2 tiles of the same rank in the same suit\n- Triplets: 3 tiles of the same rank in the same suit\n- Sequence: 3 tiles of the consecutive ranks in the same suit\n- Meld: Triplets or Sequence\n\nThe number of stock tiles is 14 per player.\n\nThe number of dealt tiles can be selected from 4, 7, 10 and 13.\n\nThe winning hand consists of\n\n- 4 dealt tiles: 1 twins and 1 meld\n- 7 dealt tiles: 1 twins and 2 melds\n- 10 dealt tiles: 1 twins and 3 melds\n- 13 dealt tiles: 1 twins and 4 melds, or 7 twins\n\n### Playing Game\n\nAfter all the players have been dealt their tiles, the players take turns drawing one tile from the stock and discarding one of the tiles they do not need in order to win.\n\nWhen the remaining one tile is enough to win, the player can declare Reach.\n\nIf the player declares Reach, the hand cannot be changed, but the player can declare Ron on the tile discarded by the opponent and win.\n\nEven if you do not declare Reach, you can still declare Tsumo and win if the tiles you have drawn are in winning hand.\n\nWhen a player wins, the winner gets the total points of the winning conditions per opponent player.\n\nIn case of win by Ron, the player who discards the winning tile loses the winner's score alone.\n\nIn case of win by Tsumo, all players except the winner lose the total points of the winning conditions.\n\nIn case of no more tiles in the stock, the game is drawn.\n\n### Differences from Japanese riichi mahjong\n\n- The players can NOT open meld\n- The players can NOT declare Ron without Reach\n- No honor tiles\n- No dora tiles\n- Simple scoring\n- No repeating game by dealer\n- No abortive draws\n\n## Winning Conditions\n\nRef: https://en.wikipedia.org/wiki/Japanese_mahjong_yaku\n\n- 1 point\n  - Reach\n  - One Shot\n  - Last Stock\n  - Last Discard\n  - Win from Stock\n  - All Middles\n  - All Sequences\n  - Pure Double Sequences\n- 2 points\n  - Double Reach\n  - Mixed Triple Sequences\n  - Mixed Triple Triplets\n  - Pure Straight\n  - Seven twins\n  - All Triplets\n  - Three Closed Triplets\n- 3 points\n  - All Outside\n  - Two Pure Double Sequences\n- 3, 4, 5, 6 points (according to dealt tiles)\n  - Full Flush\n- 16 points (special conditions)\n  - Blessing of Heaven\n  - Blessing of Earth\n  - All Terminals\n  - Four Closed Triplets\n  - Nine Gates\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusumerican%2Fsmallmahjong","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusumerican%2Fsmallmahjong","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusumerican%2Fsmallmahjong/lists"}