Need help with a logic problem, as well as understanding recursive functions

No difference. You just add those nearby cells to your dictionary as well.

Note that you can also store a timestamp with arrow data and age/remove the arrow with time if you want effect to diminish. Since the dictionary only contains relevant cells, you don’t need to do any searching/retrieval, just iterate the dictionary, as I already noted.

I’d in fact suggest making a small inner class that holds arrow data and storing an object of that class as a dictionary value. That way you can add more stored parameters as you develop the system.

1 Like

And always remember this ancient Fred Brooks wisdom :wink:

Or as Torvalds would put it in a modernized version of the same wisdom:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.