public ListHex(int size, int row, int column) : base(size, row, column) { Parent = null; RandomValue = Guid.NewGuid(); Status = Status.Untested; Attached = Matrix <double> .Build.Dense(size, size, 0); G = 0; H = 0; Attached.At(row, column, 1.0); Owner = PlayerType.White; GetNeighbours(); SetEdgeAttachedStatuses(); }
public bool IsAttachedTo(int row, int column) { return(Attached.At(row, column) == 1.0); }