Advertisement
Guest User

test_weapons.py

a guest
Jul 26th, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import ships
  4.  
  5. e = ships.Enterprise([0,0])
  6. klingons = [ships.Klingon([i, 4-i], 100) for i in xrange(5)]
  7. print [klingon.pos for klingon in klingons]
  8.  
  9. print e.generate_attack_command(*klingons)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement