That said, I haven’t used the _.indexOf function before, not sure what that does, but it doesn’t look like it is implemented in filbert. It gives a reference error.
I did not start an issue after all because it is dealing with something that I don’t understand!
I am guessing that you mean items.pop(item) . Still the same error. It removes the last element.
What i am trying to achieve is to remove the “item” from the array of the “items”, so the next peasant won`t go to the same item in the greed level. So, if i am not wrong, the item variable and the poped variable should be equal, but that is not the case.
We’re still working on having the proper Python list methods always available instead of the JS array methods–sometimes we haven’t converted the values properly. The automatic conversion will solve a lot of problems when we figure it out.