This is a python3 tutorial about two goblins doing role-playing game-combat. I explain everything in this tutorial very slow, since the title. This tutorial aims to:
This tutorial make use of the awesome technology of http://www.pythontutor.com/visualize.htm, enabling you to write, edit, run, debug and trace python code directly inside your browser. No installation or downloads necessary. All you need is a working internet connection.
However it is strongly recommended that if you can you are allowed you take those actions before starting:
In this tutorial, there are no sound or graphics. Not even colored text. Look for other tutorials, like the pygame tutorial, instead if you can't life without colors. This tutorial is about simulating combat and number crunching mostly, as well as teaching you the necessary python skills to do so.
whileloop, boolean expression
random.randint(), usning online documentation
.format()mini language, formatting numbers
return, default arguments