ailiga.fighter.Fighter

class ailiga.fighter.Fighter(lambda_env)[source]

Bases: object

Base class for all fighters.

__init__(lambda_env)[source]

Methods

__init__(lambda_env)

assert_env([name])

Assert that the env is compatible with the fighter.

compatible_envs()

Return a list of compatible envs.

get_env_name()

Get the name of the env.

get_name()

Get the name of the fighter.

get_policy()

Get the policy.

get_user()

Get the user name.

valid_env(name)

Attributes

user

assert_env(name=None)[source]

Assert that the env is compatible with the fighter.

classmethod compatible_envs()[source]

Return a list of compatible envs.

get_env_name()[source]

Get the name of the env.

Return type:

str

classmethod get_name()[source]

Get the name of the fighter.

get_policy()[source]

Get the policy.

classmethod get_user()[source]

Get the user name.