Input syntax

When you enter a turn, each player's hand is a string of tiles in a compact two-character notation. This page walks through it: every tile and its code first, then the principles for combining them.

The tiles

Characters - c

1c
2c
3c
4c
5c
6c
7c
8c
9c

Bamboo - b

1b
2b
3b
4b
5b
6b
7b
8b
9b

Circles - o

1o
2o
3o
4o
5o
6o
7o
8o
9o

Winds

E

ewEast

S

swSouth

W

wwWest

N

nwNorth

Dragons

R

rdRed

G

gdGreen

W

wdWhite

Flowers

plPlum
baBamboo
chChrysanthemum
orOrchid

Seasons

spSpring
suSummer
auAutumn
wiWinter

Chaining bonus tiles

Several flowers or seasons can pack into one token:

plor
spsuauwi

Sequences (chows)

Write the run, then the suit letter:

123c
Chow of 1-2-3 Characters
456o
Chow of 4-5-6 Circles
789b
Chow of 7-8-9 Bamboo

Pairs, pungs, kongs

Append a count to any tile code: 2 for a pair, 3 for a pung, 4 for a kong.

5o2
Pair of 5 Circles
5o3
Pung of 5 Circles
5o4
Kong of 5 Circles

The same suffix works on honours:

ew3

E

E

E

Pung of East Wind
rd2

R

R

Pair of Red Dragons

Concealed sets

Add a trailing c to a pung or kong to mark it concealed.

5o3c
Concealed Pung of 5 Circles
5o4c
Concealed Kong of 5 Circles

The concealed marker doesn't apply to pairs.

Repeat-digit shortcut

For a suited pair, pung, or kong you may repeat the digit instead of using a count suffix. These pairs of forms produce identical tiles:

11c = 1c2
111c = 1c3
1111c = 1c4

Two caveats: suited tiles only, and no concealment - for that, use the count-suffix form with a trailing c.

A complete hand

Space-separate the melds:

123c 456o 789b 1c3 5o2

Order doesn't matter; melds are sorted on display.

Try it yourself

Type any hand below; tiles render as you go. Invalid input renders nothing.

Type some tiles above to see them rendered.