Working
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
from os.path import dirname, basename, isfile
|
||||
import glob
|
||||
modules = glob.glob(dirname(__file__)+"/*/ai.py")
|
||||
__all__ = ['.'.join(f.split('.')[:-1]) for f in modules if isfile(f)]
|
||||
@@ -1,11 +0,0 @@
|
||||
"""An AI to try things"""
|
||||
|
||||
from tron.player import Player, Direction
|
||||
|
||||
class Ai(Player):
|
||||
"""" A basic AI"""
|
||||
def __init__(self):
|
||||
super(Ai, self).__init__()
|
||||
|
||||
def action(self, game):
|
||||
return Direction.RIGHT
|
||||
@@ -1,8 +0,0 @@
|
||||
from tron.player import Player, Direction
|
||||
|
||||
class Ai(Player):
|
||||
def __init__(self):
|
||||
super(Ai, self).__init__()
|
||||
|
||||
def action(self, game):
|
||||
return Direction.LEFT
|
||||
Reference in New Issue
Block a user