import random def intro: print("Welcome to the House of Cards where you wildest dreams and worst nightmares come to life.") print() print("But be wary if you stray too far from the path that your dreams tell,") print("because your thoughts just might drive you insane!") def Lounge: print("This is where you start player, if you pay attention throughout the house then you can find print("some special things to help or hinder you") print() Aceofspades = "present" print("You see an table in the corner with an Ace of Spades on it.") print() print("On the back of the card it reads: The cards can tell your next move!") Aceofspades = "absent" print("You see a table with cards laid out for a Poker game, and beside the cards there are two small bags of gold!") print() print("What will you do?") 1 = "Take gold?" 2 = "Play Poker alone?" def Takegold: print("You have take the gold and suddenly you feel cold and in pain...") print() print("You feel your back and find out that you have been stabbed...") print() print("You have no clue who did it but you can tell you can not survive the wound...") print() print("You have died! Maybe next time you will be fair and try to win the gold.")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question