Cubical dice, descended from Astralgi or sheeps' knuckle bones, made their way from Sumeria throughout the world. They had arrived in India by the 600s, and China by the 700s.
Dominoes are a Chinese invention; our western dominoes are a copy of theirs. Dominoes are, in turn, a representation of all possible combinations of a roll of two dice. There are 21 possible combinations, and with a blank tile that makes 22 unique dominoes.
In China, there is little distinction between gaming tiles made of bone or plastic and gaming cards made of paper. The same games are played with both types of gaming pieces, and they are used interchangeably.
Some scholars think that dominoes are the progenitors of money cards, and some have even tried to argue that the number 22 ties dominoes to the trumps of a Tarot deck.
The game was often referred to as "gold speckled leaves", which does make it sound quite a lot like early gold-leaf Tarot cards. Many scholars will tell you that playing cards were invented in 827 because they have conflated these two games. If there is any relationship between these games, which I doubt, it is this:
On the twenty-third day of the sixth month in the thirty-first year of the zhiyuan period (17 July 1294), we caught Yan Sengzhu and Zheng Zhugou playing cards, and have also found wood blocks to print cards. Each person has admitted to the truth of the accusation. We have, according to the rules, passed judgement and punished correctly the organizer Lu Donger, accessory to gambling Zheng Zhugou, the owner of the premises Jiang Sier, and the block printer Ye Lin, and dispatched to the Ever-abundant Treasury for deposit the nine cards (zhipai) that were about to be destroyed, and...