using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NonoGramme { internal class Line { private Tile[] _data; private int _length; private List _hints; public Tile[] Data { get => _data; set => _data = value; } public int Length { get => _length; set => _length = value; } public List Hints { get => _hints; set => _hints = value; } public Line(Tile[] states) { //This method will create a new Line wich can then be edited Data = states; } public Line(int length) { //This method will just create the Line but totally empty Data = new Tile[length]; for (int i = 0; i< length; i++) { Data[i] = new Tile(); } RecalculateHints(); } public void Edit(int index, Tile.State state) { Data[index].CurrentState = state; RecalculateHints(); } public void RecalculateHints() { //This will have to be done, for now its just a placeholder //TO REMOVE !! Hints = new List(); Hints.Add(1); Hints.Add(3); } } }