Fight move

Fight move

> Tutorial

We will see how to code a function that calculates the cells accessible by your leek. They are visible in combat by hovering the mouse over it.

Calculate the neighbors of a cell

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

Calculate reachable cells