How the chess came from
Chess came from very long ago and this is old game.The chess is therefore called ''The great Game''.
Legend of how chess came out
One Indian king asked him to make a game he could play with his soldiers, and that it was a war to have a plan, that is, a strategy, and a villager, but a very wise man, asked for a prize to give him wheat on each square twice as much as the previous one, that is, putting one grain on the first square to the second square giving etc. The gift was made too modest, but on the contrary, it was so much, because it would be necessary on the planet Earth (including and water) does not wheat and that it is collected and only then it would be feasible to do it (if we believe mathematicians).
More is here https://en.wikipedia.org/wiki/History_of_chess