MCPcopy Create free account
hub / github.com/ActiveState/code / docking

Function docking

recipes/Python/578636_Droids_2__IF_/recipe-578636.py:402–419  ·  view source on GitHub ↗
(armory, programs, droids)

Source from the content-addressed store, hash-verified

400 exit(0)
401
402def docking(armory, programs, droids):
403 print('\n----------')
404 print('\nDroid mobile..')
405 time.sleep(1)
406 print('....')
407 time.sleep(1)
408 print('''\nThis is the Docking Port where all incoming craft
409dock to access the main Cruiser. There is a
410Enemy Droid Shuttle currently docked''')
411 print('\n[-DOCKING-]')
412 print('\n1.) Escape in Enemy Droid Shuttle')
413 print('2.) Return to Main Elevator')
414 cmdlist = ['1', '2']
415 cmd = getcmd(cmdlist)
416 if cmd == '1':
417 fighter_ship(armory, programs, droids)
418 elif cmd == '2':
419 nuke_death(armory, programs, droids)
420
421def fighter_ship(armory, programs, droids):
422 print('\n <<[ ENEMY DROID SHUTTLE ]>>')

Callers 1

startFunction · 0.85

Calls 5

printFunction · 0.85
fighter_shipFunction · 0.85
nuke_deathFunction · 0.85
getcmdFunction · 0.70
sleepMethod · 0.45

Tested by

no test coverage detected