According to the legend, God Krishna once appeared in the form of a sage in the court of the king who ruled the region and challenged him for a game of chess (or chaturanga).
So the game of chess started and needless to say the king lost the game.