Fight move

Fight move

> Tutorial

We are going to see how to code a function that computes the cells your leek can reach. You can see them during a fight by hovering the mouse over your leek.

Computing the neighbors of a cell

A cell can have up to 4 neighbors. We exclude the neighbors that do not exist, that are obstacles, that contain an entity, or that have already been explored:

Computing the reachable cells