Skip to content

Commit

Permalink
Remove unused ansi rendering code from tictactoe, use kwargs (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower authored Jan 25, 2024
1 parent 35f7401 commit 6c8e8c1
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 6c8e8c1

Please sign in to comment.