iclbench.environments.baba_is_ai package
Submodules
iclbench.environments.baba_is_ai.base module
- class iclbench.environments.baba_is_ai.base.BabaIsAIWrapper(env: Env, add_ruleset=True, vlm=False)[source]
Bases:
Wrapper- __init__(env: Env, add_ruleset=True, vlm=False)[source]
Wraps an environment to allow a modular transformation of the
step()andreset()methods.- Parameters:
env – The environment to wrap
- property default_action
- get_ruleset()[source]
Retrieve and format the ruleset for the current environment.
This method extracts rules from the environment’s grid ruleset, formats them into human-readable strings, and returns them as a single string with each rule on a new line.