New here,what am i doing wrong?

Can you post your iterate_fishes function as well?

In for fish in iterate_fishes(board) do you are not using the fish variable, you might need to replace self in that block with fish, otherwise it’s running the same logic for each iteration.

It’s kind of hard to tell though without seeing the full code.

2 Likes