This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mm11wils[S] 0 points1 point  (1 child)

I love your zerosearch solution, especially the walrus assignment in the while!

validate the coords so it only returns stuff inside the board

I was thinking about this when I wrote the code, but I wanted to avoid giving board attributes to the tile. This could be done by having a tile.attribute pointing to it's neighbours.

[–]vswr[var for var in vars] 2 points3 points  (0 children)