For some reason this one was a bit tricky for me. If you look at the banner and compare it to my first draft code, you might think that the two are not too different. Well I tried running things with the if statement as global and it just didn't want to react.
Ideally what should happen is, you defeat the monster and go up a level, once you reach level 10 you have won and the game is over and should thus exit. With the if statement global nothing happened. For some reason I thought a while loop could change things, by introducing the dun_hall function in the while loop and then returning level value once 10 is reached. Super complicated and I have no idea why I thought that would work. I think it didn't work because I jumped too many functions. I then put the if statement in the correct place, with the print "You seem to have won the game" and the exit() function. This didn't work either.
Back to the drawing board and that's when it hit me. It prints the winning statement but doesn't close the game, so I instead created a function game_won() that exits the game.
So far so good, now I've created the most boring game in the entire world. You knock on the door, you fight a level 0 monster, you win go up a level and can knock on the door again. You do this until you win and the game exits.
Now to make it more interesting I of course need to introduce monsters, as in the actual monsters. My current plan is to create a CSV (comma separated values) file, to store all the monster information and then somehow use that information with python.
Of course I don't need to write down all monsters just yet, that would be stupid since I don't know whether or not this method works. So I've noted down one monster and my plan is to be able to call this monster with the program, but that will be next time