private void StartMove(Coord source, Coord target) { _moves.Add(new Movement(source, target)); }
public Movement(Coord source, Coord target) { Source = source; Target = target; }
private bool Move(Coord source, Coord target) { var result = Move(_newGrid[source.X][source.Y], _newGrid[target.X][target.Y]); if (result != 0) { _newGrid[target.X][target.Y] = result; _newGrid[source.X][source.Y] = 0; StartMove(source, target); return true; } return false; }