reworked Mark function to handle Clear function, fixed Goal class to adjusted address format, added shufflecellsfunction

This commit is contained in:
2026-01-27 02:54:52 -05:00
parent 600cbb0178
commit f07139c440
8 changed files with 87 additions and 93 deletions

View File

@@ -52,7 +52,7 @@ public partial class Board : Sprite2D
public void ClearBoard(){
foreach (Cell cell in _cells)
{
cell.Clear();
cell.Mark();
}
}
@@ -88,9 +88,7 @@ public partial class Board : Sprite2D
public void RenumberCells()
{
GD.Print(string.Join(", ", _cells.Select(c=>c._address)));
_cells = _cells.OrderBy(c => c.Position.Y).ThenBy(c => c.Position.X).ToList();
GD.Print(string.Join(", ", _cells.Select(c=>c._address)));
for (int i = 0; i < _cells.Count; i++)
{