A playing card is a piece of specially prepared heavy paper, thin cardboard, plastic-coated paper, cotton-paper blend, or thin plastic, marked with distinguishing motifs and used as one of a set for playing card games. Playing cards are typically palm-sized for convenient handling, and were first invented in China during the Tang dynasty.
Playing cards may have been invented during the Tang dynasty around the 9th century AD as a result of the usage of woodblock printing technology and there were 30 cards in a deck. The first possible reference to card games comes from a 9th-century text known as the Collection of Miscellanea at Duyang, written by Tang dynasty writer Su E. It describes Princess Tongchang, daughter of Emperor Yizong of Tang, playing the "leaf game" in 868 with members of the clan of Wei Baoheng, the family of the princess' husband. The first known book on the "leaf" game was called the Yezi Gexi and allegedly written by a Tang woman. It received commentary by writers of subsequent dynasties. The Song dynasty (960–1279) scholar Ouyang Xiu (1007–1072) asserts that the "leaf" game existed at least since the mid-Tang dynasty and associated its invention with the development of printed sheets as a writing medium. However, Ouyang also claims that the "leaves" were pages of a book used in a board game played with dice, and that the rules of the game were lost by 1067.
Other games revolving around alcoholic drinking involved using playing cards of a sort from the Tang dynasty onward. However these cards did not contain suits or numbers. Instead, they were printed with instructions or forfeits for whoever drew them.
The earliest dated instance of a game involving cards with suits and numerals occurred on 17 July 1294 when "Yan Sengzhu and Zheng Pig-Dog were caught playing cards [zhi pai] and that wood blocks for printing them had been impounded, together with nine of the actual cards."
William Henry Wilkinson suggests that the first cards may have been actual paper currency which doubled as both the tools of gaming and the stakes being played for, similar to trading card games. Using paper money was inconvenient and risky so they were substituted by play money known as "money cards". One of the earliest games in which we know the rules is Madiao, a trick-taking game, which dates to the Ming Dynasty (1368–1644). Fifteenth century scholar Lu Rong described it is as being played with 38 "money cards" divided into four suits: 9 in coins, 9 in strings of coins (which may have been misinterpreted as sticks from crude drawings), 9 in myriads (of coins or of strings), and 11 in tens of myriads (a myriad is 10,000). The two latter suits had Water Margin characters instead of pips on them with Chinese characters to mark their rank and suit. The suit of coins is in reverse order with 9 of coins being the lowest going up to 1 of coins as the high card.