it was invented around 1500 years ago in India apparently. It's hard to know for sure.
History of Chess
H. J. R. Murray's chess history
https://web.archive.org/web/20140708090911/http://www.chesscafe.com/text/review883.pdf
H. J. R. Murray's chess history
https://web.archive.org/web/20140708090911/http://www.chesscafe.com/text/review883.pdf
Did it start with Chaduranga?