Skip to content

Commit

Permalink
Remove old ansi tictactoe rendering code and use kwargs in .env() lik…
Browse files Browse the repository at this point in the history
…e other envs
  • Loading branch information
elliottower committed Jan 25, 2024
1 parent 35f7401 commit 4656238
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pettingzoo/classic/tictactoe/tictactoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,8 @@ def get_font(path, size):
return font


def env(render_mode=None):
internal_render_mode = render_mode if render_mode != "ansi" else "human"
env = raw_env(render_mode=internal_render_mode)
if render_mode == "ansi":
env = wrappers.CaptureStdoutWrapper(env)
def env(**kwargs):
env = raw_env(**kwargs)
env = wrappers.TerminateIllegalWrapper(env, illegal_reward=-1)
env = wrappers.AssertOutOfBoundsWrapper(env)
env = wrappers.OrderEnforcingWrapper(env)
Expand Down

0 comments on commit 4656238

Please sign in to comment.