On Sat, May 11, 2013 at 12:13 PM, Jack Little <jacklittl...@yahoo.com> wrote: > I have a slight problem. My program will not open. On top of that, I have > written similar programs all to no avail. I am creating a text adventure and > want there to be different rooms. Here is my code: > > > def menu(): > print "Welcome to Tomb Explorer!" > print "A game of Exploration from Bulldog Development" > print "Press [1] to Play or [2] to Exit" > menu1=raw_input(" >> ") > if menu1== "2": > quit() > if menu1== "1": > room1() > menu()
You are not calling your function: menu(). Just move the menu() ( your last line) to the left: def menu(): print "Welcome to Tomb Explorer!" print "A game of Exploration from Bulldog Development" print "Press [1] to Play or [2] to Exit" menu1=raw_input(" >> ") if menu1== "2": quit() if menu1== "1": room1() menu() HTH,Amit. -- http://echorand.me _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor