ThePythonGameBook

learn Python. Create Games

User Tools

Site Tools


en:python:goblins:step013

013 many battles

step013

using classes

source code

click reload on your browser if you see no source code here or visit Github.com

code discussion

output

online

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:

step013
/var/www/horst/thepythongamebook.com/data/pages/en/python/goblins/step013.txt · Last modified: 2014/01/09 11:07 (external edit)