Mahjong
You against three bots, in six variants: American (NMJL-style), Hong Kong, Japanese Riichi, Chinese Official, Taiwanese and Sichuan. Written in C with raylib and compiled to WebAssembly.
Best played with a mouse and keyboard on a laptop or desktop screen.
How to play
- Pick a variant in the menu. In a game, H opens that variant's rules lesson.
- Click a tile to select it, then click it again (or press Discard) to throw it.
- Buttons appear for each choice you have: Win, Kong, Pung, Chow or Pass.
- Hover a discard to magnify it and see how many copies are visible.
- American: drag tiles to rearrange them (Sort puts them back), and click a glowing joker in an exposure to swap it for the real tile.
Keys
- Enter confirms, including a selected discard
- Space passes on a call
- C turns the strategy coach on or off
- H opens the rules
- M turns the sound on or off
- Esc opens the menu (variant, difficulty, new game)