tests/test_envs.py
def convert_empty_cells(view):
        """Change all empty cells marked with '0' to ' ' for consistency."""
        # No mask because it doesn't work correctly on byte arrays
        for x in range(len(view)):
            for y in range(len(view[0])):
                view[x, y] = b" " if view[x, y] == b"0" else view[x, y]
        return view
Change all empty cells marked with '0' to ' ' for consistency.
Change all empty cells marked with '0' to ' ' for consistency.
Change all empty cells marked with ' 0 ' to ' ' for consistency .
def convert_empty_cells(view):
        for x in range(len(view)):
            for y in range(len(view[0])):
                view[x, y] = b" " if view[x, y] == b"0" else view[x, y]
        return view
def convert_empty_cells ( view ) : for x in range ( len ( view ) ) : for y in range ( len ( view [ 0 ] ) ) : view [ x , y ] = b" " if view [ x , y ] == b"0" else view [ x , y ] return view
Change all empty cells marked with '0' to ' ' for consistency.
Change all empty cells marked with ' 0 ' to ' ' for consistency .
"""Change all empty cells marked with '0' to ' ' for consistency.""" # No mask because it doesn't work correctly on byte arrays
view