specless.strategy.Strategy

class specless.strategy.Strategy[source]

Bases: object

Base class for all strategy classes

Methods

action

Get the action for the strategy.

reset

Reset the strategy.

abstract action(state: ObsType) ActType[source]

Get the action for the strategy.

Returns:

The action for the strategy.

Return type:

Any

Raises:

NotImplementedError – If the method is not implemented in a subclass.

abstract reset() None[source]

Reset the strategy.

Raises:

Exception – If the method is not implemented in a subclass.