public void Add(int row, int column) { MoveStep node = new MoveStep(row, column, null); node.AddNext(_steps.FirstOrDefault()); _steps.Insert(0, node); }
public MoveStep(int row, int column, MoveStep previous = null) { Row = row; Column = column; Previous = previous; }
public void AddNext(MoveStep node) { Next = node; }