From 4745bff1ce9888effe8ec26253e4349d47436a05 Mon Sep 17 00:00:00 2001 From: Timothée Floure Date: Tue, 1 Mar 2016 17:25:52 +0100 Subject: Board class : fix magic numbers in comments --- src/ch/epfl/xblast/server/Board.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 { * Instanciates a new Board with the given sequence of blocks. * * @param blocks sequence containing all the blocks of the Boards - * @throws IllegalArgumentException if the blocks is not composed of 195 elements + * @throws IllegalArgumentException if the blocks is not composed of BLOC_LIST_SIZE elements */ public Board(List> blocks) { if (blocks.size() != BLOCKS_LIST_SIZE) { @@ -65,7 +65,7 @@ public final class Board { * * @param rows list containing all the rows * @return a new Board built with given rows - * @throws IllegalArgumentException if rows is not 13*15 + * @throws IllegalArgumentException if rows is not BOARD_ROWS * BOARD_COLUMNS */ public static Board ofRows(List> rows) { checkBlockMatrix(rows, BOARD_ROWS, BOARD_COLUMNS); @@ -85,7 +85,7 @@ public final class Board { * * @param innerBlocks lists of the internal rows * @return a new walled board filled with the given rows - * @throws IllegalArgumentException if innerbLocks is not 11*13 + * @throws IllegalArgumentException if innerbLocks is not INNER_BOARD_ROWS * INNER_BOARD_COLUMNS */ public static Board ofInnerBlocksWalled(List> innerBlocks) { checkBlockMatrix(innerBlocks, INNER_BOARD_ROWS, INNER_BOARD_COLUMNS); @@ -115,7 +115,7 @@ public final class Board { * * @param quadrantNWBlocks the NW quadrant of the board (inner blocks only!) * @return a new walled board symmetrically filled with the given NW quadrant - * @throws IllegalArgumentException if quadrantNWBlocks is not 6*7 + * @throws IllegalArgumentException if quadrantNWBlocks is not QUADRANT_ROWS * QUADRANT_COLUMNS */ public static Board ofQuadrantNWBlocksWalled(List> quadrantNWBlocks) { checkBlockMatrix(quadrantNWBlocks, QUADRANT_ROWS, QUADRANT_COLUMNS); -- cgit v1.2.3