if the player typed in 'noor 'nor something silly like 'abraham lincoln'then the condition would be false the program execution would continue on to the line after the while-block but since there are no more lines after the while-blockthe program terminates one thing to notethe string 'yesis not equal to the string 'yesif the player typed in the string 'yes'then the while statement' condition would evaluate to false and the program would still terminate later programs in this book will show you how to avoid this problem you've just completed your second gamein dragon realmyou used lot of what you learned in the guess the number game and picked up few new tricks if you didn' understand some of the concepts in this programthen go over each line of the source code againand try changing the source code and see how the program changes in the next you won' create gamebut instead learn how to use feature of idle called the debugger designing the program dragon realm is simple game the other games in this book will be bit more complicated it sometimes helps to write down everything you want your game or program to do before you start writing code this is called "designing the program for exampleit may help to draw flow chart flow chart is picture that shows every possible action that can happen in the gameand which actions lead to which other actions figure - is flow chart for dragon realm to see what happens in the gameput your finger on the "startbox then follow one arrow from the box to another box your finger is like the program execution the program terminates when your finger lands on the "endbox when you get to the "check for friendly or hungry dragonboxyou can go to the "player winsbox or the "player losesbox this branching point shows how the program can do different things either wayboth paths will end up at the "ask to play againbox summary in the dragon realm gameyou created your own functions functions are mini-program within your program the code inside the function runs when the function is called by breaking up your code into functionsyou can organize your code into smaller and easier to understand sections arguments are values copied to the function' parameters when the function is called the function call itself evaluates to the return value post questions to