Professional Documents
Culture Documents
#
#
def main():
endProgram ='no'
ammo=int(0)
while endProgram == 'no':
fuel = 200
fuel = float (fuel)
print
#display menu
print 'Menu Selections: '
print '1 - Fire Weapon '
print '2 - Move Forward '
print '3 - Move Backward '
print '4 - Exit '
#move bot
def moveBot(fuel):
fuel = input ('How far would you like to move? ')
#kill enemy
def kill():
print
print 'How far away is the enemy? '
killDis = input ('Enter distance in feet now! ')
#check effect
if killDis <= 20:
print 'Enemy has been destroyed! '
return
elif killDis <= 40:
print 'Enemy has been partially disabled. '
return
elif killDis >= 41:
print 'The enemy has been unharmed! '
return
#end program
def end():
endProgram = raw_input ('Do you want to end program? yes or no ')
#calls main
main()