test_play

Module Contents

Classes

SkillBase

Helper class that provides a standard way to create an ABC using

SkillA

Helper class that provides a standard way to create an ABC using

SkillB

Helper class that provides a standard way to create an ABC using

SkillC

Helper class that provides a standard way to create an ABC using

Skills

TacticBase

Functions

get_tactic_ctx() → stp.tactic.Ctx

Creates a simple tactic context for convenience.

test_flatten_requests() → None

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.Skills

Bases: stp.tactic.SkillsEnum

A1
A2
B1
B2
C1
C2
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.