I want to make a simple game in Python where you are the '@' sign and can move around a room.
level = """
┌-------------------------------------------┐
| |
| |
| |
| |
| |
| |
| @ |
| |
| |
| |
| |
| |
| |
| |
└-------------------------------------------┘
"""
print level
moving = raw_input(' ')
if moving == str('w'):
level == """
┌-------------------------------------------┐
| |
| |
| |
| |
| |
| @ |
| |
| |
| |
| |
| |
| |
| |
| |
└-------------------------------------------┘
"""
print level
That is my code so far. I want to make it so that when the user inputs 'w' the first 'level' printed is replaced in the terminal. Is this possible? If so how do I do this? If not how (alternatively) would I do this? [edit] when i input 'w' i want it to replace the first 'level' printed in the program. instead of printing out a new instance of 'level' sorry for not explaining well enough