MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / movement_handler

Function movement_handler

TEXTVENTURE/game.py:365–376  ·  view source on GitHub ↗
(destination)

Source from the content-addressed store, hash-verified

363
364# Movement Handler
365def movement_handler(destination):
366 if destination == '':
367 print("\nYou cannot go that way.\n")
368 return
369
370 else:
371 print("\n" + "You moved to the " + destination + ".")
372 player.location = destination
373 ZONE_MAP [player.location]["SOLVED"] = True
374
375 show_location()
376 return
377
378# Player Movement
379def player_move(myAction):

Callers 1

player_moveFunction · 0.85

Calls 1

show_locationFunction · 0.85

Tested by

no test coverage detected