original_docstring: convert ownership/policy to grid format such that grid[y][x] is for move with coords x,y
docstring: convert ownership/policy to grid format such that grid[y][x] is for move with coords x,y
docstring_tokens: convert ownership / policy to grid format such that grid [ y ] [ x ] is for move with coords x y
code: def var_to_grid(array_var: List[T], size: Tuple[int, int]) -> List[List[T]]:
      """convert ownership/policy to grid format such that grid[y][x] is for move with coords x,y"""
      ix = 0
      grid = [[]] * size[1]
      for y in range(size[1] - 1, -1, -1):
          grid[y] = array_var[ix : ix + size[0]]
          ix += size[0]
      return grid
code_tokens: def var_to_grid ( array_var : List [ T ] , size : Tuple [ int , int ] ) -> List [ List [ T ] ] : ix = 0 grid = [ [ ] ] * size [ 1 ] for y in range ( size [ 1 ] - 1 , - 1 , - 1 ) : grid [ y ] = array_var [ ix : ix + size [ 0 ] ] ix += size [ 0 ] return grid
short_docstring: convert ownership/policy to grid format such that grid[y][x] is for move with coords x,y
short_docstring_tokens: convert ownership / policy to grid format such that grid [ y ] [ x ] is for move with coords x y
comment: """convert ownership/policy to grid format such that grid[y][x] is for move with coords x,y"""