reading fucking cells
This commit is contained in:
@@ -9,9 +9,18 @@ class BaseAgent(ABC):
|
||||
"""
|
||||
self.id=uuid.uuid4()
|
||||
self.simulation=simulation
|
||||
simulation.register_tick(self.id,self.tick)
|
||||
simulation.register_agent(self.id,self.tick,self.reset)
|
||||
pass
|
||||
def tick(self):
|
||||
def tick(self,tick,episode):
|
||||
"""
|
||||
Tick method for simulation to call to execute selected action
|
||||
"""
|
||||
"""
|
||||
assert "No Tick method has been provided"
|
||||
pass
|
||||
|
||||
def reset(self):
|
||||
"""
|
||||
Resets agent to new episode.
|
||||
"""
|
||||
assert "No reset method has been provided"
|
||||
pass
|
||||
Reference in New Issue
Block a user