test_play
Module Contents
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Functions
|
Creates a simple tactic context for convenience. |
|
Tests that play.flatten_requests works as expected. |
- class test_play.SkillBase
Bases:
stp.skill.ISkill
Helper class that provides a standard way to create an ABC using inheritance.
- define(self)
- __repr__(self) str
Return repr(self).
- tick(self) None
- class test_play.SkillA
Bases:
SkillBase
Helper class that provides a standard way to create an ABC using inheritance.
- class test_play.SkillB
Bases:
SkillBase
Helper class that provides a standard way to create an ABC using inheritance.
- class test_play.SkillC
Bases:
SkillBase
Helper class that provides a standard way to create an ABC using inheritance.
- class test_play.TacticBase(ctx: stp.tactic.Ctx)
Bases:
stp.tactic.ITactic
[None
]- compute_props(self, prev_props: None) None
- create_request(self) stp.role.RoleRequest
- tick(self, role_results: stp.tactic.RoleResults, props: None) List[stp.action.IAction]
- get_requests(self, world_state: stp.rc.WorldState, props: None) stp.tactic.RoleRequests
- test_play.get_tactic_ctx() stp.tactic.Ctx
Creates a simple tactic context for convenience. :return: Tactic context containing SkillA, SkillB and SkillC.
- test_play.test_flatten_requests() None
Tests that play.flatten_requests works as expected.