public Cell(Board board, Square square, int row, int column) { Board = board; Square = square; Row = row; Column = column; Enabled = true; }
private void SetupGrid(Board board) { this.ColumnDefinitions.Add(new ColumnDefinition { MinWidth = 2, MaxWidth = 2 }); this.RowDefinitions.Add(new RowDefinition { MinHeight = 2, MaxHeight = 2 }); for (int counter = 0; counter < board.Size; counter++) { this.ColumnDefinitions.Add(new ColumnDefinition { MinWidth = 40, MaxWidth = 40 }); this.RowDefinitions.Add(new RowDefinition { MinHeight = 40, MaxHeight = 40 }); if (counter % board.SquareSize == board.SquareSize - 1) { this.ColumnDefinitions.Add(new ColumnDefinition { MinWidth = 2, MaxWidth = 2 }); this.RowDefinitions.Add(new RowDefinition { MinHeight = 2, MaxHeight = 2 }); } } }
public Algo(Board board) : base(board) { }
public SudokuAlgoBase(Board board) { Board = board; Cell.CellValueChanged += OnCellValueChange; }
public BoardRange(Board board) : base(board.MinimumCellValue, board.MaximumCellValue) { }
private Dictionary<Cell, List<int>> cube = null; // we can also create the #endregion Fields #region Constructors public Algo(Board board) : base(board) { Initiate(); }