This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sryn - 20181205 | |
# based on https://www.youtube.com/watch?v=8uJFN7OZ2Yo&index=4&list=PLhP5GzqIk6qsYjU_3tod0nqoWGXlq9RvF | |
# which is a solution to '4. TextBased Adventure Game' of 'Five mini programming projects for the Python beginner' | |
# by https://twitter.com/tan_shelly | |
# at https://knightlab.northwestern.edu/2014/06/05/five-mini-programming-projects-for-the-python-beginner/ | |
import random | |
def msg(room): | |
if room['msg'] == '': #There is no custom message | |
return "You have entered the " + room['name'] + "." |