code games. learn Python.
click reload on your browser if you see no source code here or visit Github.com
You can try out the example online; because the onlinetutor does not like looping more than 300 times i reduced the values stat values to force fewer combat rounds. Just click on the graphic below: