Example #1
0
        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();
        }
Example #2
0
 public bool IsAttachedTo(int row, int column)
 {
     return(Attached.At(row, column) == 1.0);
 }