"""
AI Name: Random AI
Strategy:
Move around randomly.
Attack any robot in front.
"""
import random
class AI:
def __init__(self):
#Anything the AI needs to do before the game starts goes here.
pass
def turn(self):
if self.robot.lookInFront() == "bot":
self.robot.attack()
return
else:
random.choice([self.robot.turnLeft,self.robot.turnRight,self.robot.goForth,self.robot.goForth2])()
# random.choice([self.robot.turnLeft,self.robot.turnRight,self.robot.goForth,self.robot.goForth2])()