Skip to content

Instantly share code, notes, and snippets.

@cbouery
cbouery / adventure_game.py
Created June 24, 2017 18:50 — forked from FardinBehboudi/adventure_game.py
TextBaset Advanture Game in python
# TextBaset Advanture Game
import random
print 'lets start the text based advanture game '
def msg(room):
if room['msg'] == '':
return 'you have entered to : ' + room['name']
else:
return room['msg']
@cbouery
cbouery / adventure_game.py
Created June 24, 2017 18:50 — forked from FardinBehboudi/adventure_game.py
TextBaset Advanture Game in python
# TextBaset Advanture Game
import random
print 'lets start the text based advanture game '
def msg(room):
if room['msg'] == '':
return 'you have entered to : ' + room['name']
else:
return room['msg']