refactor: update ContrainteBloc to handle rectangle bloc, update tests, and improve code comments

This commit is contained in:
2025-02-09 11:47:02 +01:00
parent ea868017ee
commit 86fe45c358
27 changed files with 356 additions and 251 deletions

View File

@@ -1,25 +1,7 @@
package sudoku;
public class SudokuPlacement {
private final Sudoku sudoku;
private final int offsetLigne;
private final int offsetColonne;
public SudokuPlacement(Sudoku sudoku, int offsetLigne, int offsetColonne) {
this.sudoku = sudoku;
this.offsetLigne = offsetLigne;
this.offsetColonne = offsetColonne;
}
public Sudoku getSudoku() {
return sudoku;
}
public int getOffsetLigne() {
return offsetLigne;
}
public int getOffsetColonne() {
return offsetColonne;
}
/**
* Classe permettant de stocker un placement de symbole dans une grille de sudoku.
*/
public record SudokuPlacement(Sudoku sudoku, int offsetLigne, int offsetColonne) {
}