Finally learned how to calculate American 10 pin bowling by hand. https://gist.github.com/yosun/64abdb4fa873bdc66328c4d6d9653b99