aboutsummaryrefslogtreecommitdiff
path: root/src/ch/epfl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl')
-rw-r--r--src/ch/epfl/xblast/server/Board.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ch/epfl/xblast/server/Board.java b/src/ch/epfl/xblast/server/Board.java
index d47bdd3..bde0ae9 100644
--- a/src/ch/epfl/xblast/server/Board.java
+++ b/src/ch/epfl/xblast/server/Board.java
@@ -51,7 +51,7 @@ public final class Board {
51 * Instanciates a new Board with the given sequence of blocks. 51 * Instanciates a new Board with the given sequence of blocks.
52 * 52 *
53 * @param blocks sequence containing all the blocks of the Boards 53 * @param blocks sequence containing all the blocks of the Boards
54 * @throws IllegalArgumentException if the blocks is not composed of 195 elements 54 * @throws IllegalArgumentException if the blocks is not composed of BLOC_LIST_SIZE elements
55 */ 55 */
56 public Board(List<Sq<Block>> blocks) { 56 public Board(List<Sq<Block>> blocks) {
57 if (blocks.size() != BLOCKS_LIST_SIZE) { 57 if (blocks.size() != BLOCKS_LIST_SIZE) {
@@ -65,7 +65,7 @@ public final class Board {
65 * 65 *
66 * @param rows list containing all the rows 66 * @param rows list containing all the rows
67 * @return a new Board built with given rows 67 * @return a new Board built with given rows
68 * @throws IllegalArgumentException if rows is not 13*15 68 * @throws IllegalArgumentException if rows is not BOARD_ROWS * BOARD_COLUMNS
69 */ 69 */
70 public static Board ofRows(List<List<Block>> rows) { 70 public static Board ofRows(List<List<Block>> rows) {
71 checkBlockMatrix(rows, BOARD_ROWS, BOARD_COLUMNS); 71 checkBlockMatrix(rows, BOARD_ROWS, BOARD_COLUMNS);
@@ -85,7 +85,7 @@ public final class Board {
85 * 85 *
86 * @param innerBlocks lists of the internal rows 86 * @param innerBlocks lists of the internal rows
87 * @return a new walled board filled with the given rows 87 * @return a new walled board filled with the given rows
88 * @throws IllegalArgumentException if innerbLocks is not 11*13 88 * @throws IllegalArgumentException if innerbLocks is not INNER_BOARD_ROWS * INNER_BOARD_COLUMNS
89 */ 89 */
90 public static Board ofInnerBlocksWalled(List<List<Block>> innerBlocks) { 90 public static Board ofInnerBlocksWalled(List<List<Block>> innerBlocks) {
91 checkBlockMatrix(innerBlocks, INNER_BOARD_ROWS, INNER_BOARD_COLUMNS); 91 checkBlockMatrix(innerBlocks, INNER_BOARD_ROWS, INNER_BOARD_COLUMNS);
@@ -115,7 +115,7 @@ public final class Board {
115 * 115 *
116 * @param quadrantNWBlocks the NW quadrant of the board (inner blocks only!) 116 * @param quadrantNWBlocks the NW quadrant of the board (inner blocks only!)
117 * @return a new walled board symmetrically filled with the given NW quadrant 117 * @return a new walled board symmetrically filled with the given NW quadrant
118 * @throws IllegalArgumentException if quadrantNWBlocks is not 6*7 118 * @throws IllegalArgumentException if quadrantNWBlocks is not QUADRANT_ROWS * QUADRANT_COLUMNS
119 */ 119 */
120 public static Board ofQuadrantNWBlocksWalled(List<List<Block>> quadrantNWBlocks) { 120 public static Board ofQuadrantNWBlocksWalled(List<List<Block>> quadrantNWBlocks) {
121 checkBlockMatrix(quadrantNWBlocks, QUADRANT_ROWS, QUADRANT_COLUMNS); 121 checkBlockMatrix(quadrantNWBlocks, QUADRANT_ROWS, QUADRANT_COLUMNS);