Examples of BigCell


Examples of com.barrybecker4.puzzle.sudoku.model.board.BigCell

    public void updateAndSet() {

        int n = board.getBaseSize();
        for (int row = 0; row < n; row++) {
            for (int col = 0; col < n; col++) {
                BigCell bigCell = board.getBigCell(row, col);
                for (int value : board.getValuesList())  {
                    int uniqueRow = bigCell.findUniqueRowFor(value);
                    if (uniqueRow >= 0) {
                        checkAndSetRowOutside(bigCell, uniqueRow + row * n, value);
                    }
                    int uniqueCol = bigCell.findUniqueColFor(value);
                    if (uniqueCol >= 0) {
                        checkAndSetColOutside(bigCell, uniqueCol + col * n, value);
                    }
                }
            }
View Full Code Here

Examples of com.barrybecker4.puzzle.sudoku.model.board.BigCell

        for (int row = 0; row < board.getEdgeLength(); row++) {
            for (int col = 0; col < board.getEdgeLength(); col++) {
                Cell cell = board.getCell(row, col);

                BigCell bigCell = board.getBigCell(row / n, col / n);
                CandidatesArray bigCellCands = getCandidatesArrayExcluding(bigCell, row % n, col % n);
                CandidatesArray rowCellCands = getCandidatesArrayForRowExcludingCol(row, col);
                CandidatesArray colCellCands = getCandidatesArrayForColExcludingRow(row, col);

                checkAndSetLoneRangers(bigCellCands, cell);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.