It's precursor is said to be a card game called "ma-tiao," played in the Sung and Ming dynasties, which had 40 cards painted with characters from the Water Margin and which already used the "ten thousand" character and the bamboo as symbols for suits.
這種只有四十張，上面繪有水滸人物的圖樣，已有萬字、索子的符號。