To use this package, you need to enable 【Auto Settings】-> 【Built-in Mode】.
In Riichi City, declaring Riichi is not a standalone action; it is embedded in the discard (a discard with a Riichi declaration), so use the Riichi method.
Tile names use the same string representation as Majsoul: 1m-9m (man), 1p-9p (pin), 1s-9s (sou), 1z-7z (honors); red fives are 0m / 0p / 0s.
Discard a tile, tile is the tile name, tsumogiri indicates if it's the last drawn tile
Riichi
tile: string, tsumogiri: bool
None
Declare Riichi (a discard with a Riichi declaration), tile is the discarded tile, tsumogiri as above
Chii
calledTile: string, consumed: []string
None
Chii, calledTile is the called tile, consumed are the two hand tiles forming the run
Pon
calledTile: string, consumed: []string
None
Pon, calledTile is the called tile, consumed are the two hand tiles used for Pon
Daimingkan
calledTile: string, consumed: []string
None
Daimingkan, calledTile is the called tile, consumed are the three hand tiles
Ankan
tile: string
None
Ankan, tile is the tile name
Kakan
tile: string
None
Kakan, tile is the newly added tile name
Tsumo
None
None
Tsumo (Self-draw win)
Ron
None
None
Ron (Win by discard)
Ryukyoku
None
None
Nine Terminal Tiles (abortive draw)
Babei
None
None
Execute Babei
Cancel
None
None
Cancel or skip (do not call)
Full Example Script
Consistent with Majsoul/Tenhou: in the onExecute callback you receive the AI's recommended result and dispatch by action type to the corresponding RiichiCityActions method.