Commit b1363311 authored by gem2578's avatar gem2578

Merge branch '5-update-brain-to-be-a-abstractclass' into 'master'

Update brain to be an abstract class

Closes #5

See merge request !7
parents 80048113 c2ed95ad
from abc import ABC, abstractmethod
from model.object_type import ObjectType
from model.cup_object import CupObject
from pygame.math import Vector2
class Brain():
class Brain(ABC):
def __init__(self, side):
self.side = side
......@@ -34,5 +35,6 @@ class Brain():
objects.sort(key = lambda agent: self.pos.distance_to(agent.pos))
return objects
def action(self):
raise Exception('action() have not been setup')
raise Exception('action() has not been setup')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment