File: randomai.py

package info (click to toggle)
balder2d 1.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 12,552 kB
  • ctags: 1,226
  • sloc: cpp: 8,623; xml: 398; python: 364; ansic: 214; makefile: 79; sh: 9
file content (12 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
import balder
import random
try:
  import psyco
except ImportError:
  # no psyco, so don't use it
  pass
else:
  psyco.full()

def DoProbeControl(probe_id, probe_dict, projectile_list, powerup_list):
    return random.randint(0,16)