Ad
  • Custom User Avatar

    Hello. I need help. I believe I'm missing some important fundamentals here and the question is dumb, but I can't get the data.

    If I write "return grid" it returns plain list of coordinates without any other data. So I see something like [[(0,0),(0,1),..],[(1,1),(1,2),...]etc] instead of the expected matrix blueprint.
    I know how to do it if the function takes the matrix itself, but I don't understand what am I suppose to do with plain list of coordinates.
    So, help, please tell me what am I doing wrong.

    For the record: I believe using "blueprint = grid1_blueprint" in the function must work but it returns an error.

  • Custom User Avatar

    cache is recreated again every time your function is called, that won't work. Google how memoization is done.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution