title: Python Text based game Error while debugging
body: <p>I am working on a text-based game for a Python class I am taking. I keep running into the same error and I am not sure what it is that it's wanting me to do. I am sure it is something simple, but I am not understanding. Below is the code I have so far and the error I am getting. Any help is appreciated.</p>
  <pre><code>#Jessica Call
  
  
  def showInstructions():
   print(
   &quot;Stop The Shot Caller ======== COLLECT ALL ITEMS TO WIN. A Shot Caller is waiting for you! Just go South, go North, go East, go West. Collect Six items before you meet the Shot Caller.Find a Pistol, A key, Ammo, a Kevlar Vest, A Flashbang and the Evidence!&quot;)
  def showStatus(currentRoom, inventory, rooms):
   print(' ---------------------------')
   print('You are in the ' + currentRoom)
   print('Inventory : ' + str(inventory))
   if &quot;item&quot; in rooms[currentRoom]:
    print('You see a ' + rooms[currentRoom]['item'])
  def main():
   inventory = []
   rooms = {
   'Lobby': {'South': 'Basement','North': 'Study', 'East':
  'Attic', 'West': 'Kitchen'},
   'Basement': {'North': 'Lobby', 'East': 'Security', 'item': 'Flashbang'},
   'Elevator': {'West': 'Study', 'item': 'Key'},
   'Study': {'South': 'Lobby', 'East': 'Elevator', 'item':
  'Pistol'},
   'Kitchen': {'West': 'Lobby', 'item': 'Ammo'},
   'Attic': {'West': 'Lobby', 'North': 'Parking Lot', 'item': 'Kevlar Vest'},
   'Parking Lot': {'South': 'Attic', 'item': 'SHOT CALLER!!!!'},
   'Security': {'West': 'Basement', 'item': 'Evidence'}
   }
   currentRoom = 'IceHall'
   showInstructions()
   while True:
    showStatus(currentRoom, inventory, rooms)
   if &quot;item&quot; in rooms[currentRoom]:
    if rooms[currentRoom]['item'] == 'SHOT CALLER!!!!':
     print(&quot;DEAD!!!.... GAME OVER!&quot;)
   break
   if len(inventory) == 6:
    print(&quot;Congratulations! You have collected all items and now have won the game!&quot;)
   break
   print(&quot; ---------------------------&quot;)
   print(&quot;Enter your move: &quot;)
   move = ''
   while move == '':
    move = input('&gt;')
    move = move.split()
    if len(move) != 2:
     print(&quot;Invalid Input!&quot;)
   continue
   if move[0] == 'go':
    if move[1] in rooms[currentRoom]:
     currentRoom = rooms[currentRoom][move[1]]
   else:
    print(&quot;You can't go that way!&quot;)
  
   while move[0] == 'get':
    if &quot;item&quot; in rooms[currentRoom] and move[1] in rooms[currentRoom]['item']:
     inventory += [move[1]]
   print(move[1] + ' got!')
   del rooms[currentRoom]['item']
  else:
    print(&quot;Can't get&quot; + move[1] + &quot;!&quot;)
   else:
   print(&quot;Invalid move!&quot;)
   print(&quot;You did it! You caught the Shot Caller!&quot;)
  if __name__ == '__main__':
   main()
  </code></pre>
  <p>Error:
  C:\Users\stoop\PycharmProjects\pythonProject5\venv\Scripts\python.exe C:/Users/stoop/PycharmProjects/pythonProject5/main.py
  File &quot;C:\Users\stoop\PycharmProjects\pythonProject5\main.py&quot;, line 58
  else:
  ^^^^
  SyntaxError: invalid syntax</p>
  <p>Process finished with exit code 1</p>