Closed avancinirodrigo closed 4 years ago
Create a test to check cell neighbors. Show it in a map from a file and xdim.
cell = Cell{state = "empty"} cs = CellularSpace{xdim = 10, instance = cell} cell = cs:get(5, 5) cell.state = "selected" cs:get(cell.x, cell.y - 1).state = "full" cs:get(cell.x + 1, cell.y + 1).state = "full" print(cs:get(cell.x + 1, cell.y + 1)) Map{ target = cs, select = "state", value = {"empty", "full", "selected"}, color = {"white", "blue", "black"} }
Do not forget to update the documentation.
Create a test to check cell neighbors. Show it in a map from a file and xdim.