Skip to content

Package: IC4BoardBase

IC4BoardBase

Coverage

1: package de.fhdw.gaming.ipspiel23.c4.domain;
2:
3: import de.fhdw.gaming.core.domain.Stateful;
4:
5: /**
6: * Represents any connect four board.
7: */
8: public interface IC4BoardBase extends Stateful {
9:
10: /**
11: * Retrieves the number of rows of the board.
12: */
13: int getRowCount();
14:
15: /**
16: * Retrieves the number of columns of the board.
17: */
18: int getColumnCount();
19:
20: /**
21: * Retrieves the minimum number of fields that are required to win the game.
22: */
23: int getMinimumSolutionSize();
24:
25: /**
26: * Determines whether the specified position lies within the bounds of the board.
27: * @param row The row of the position.
28: * @param column The column of the position.
29: * @return {@code true} if the position lies within the bounds of the board, {@code false} otherwise.
30: */
31: boolean checkBounds(int row, int column);
32:
33: /**
34: * Checks whether the board is full, i.e. there are no empty positions left and no more tokens can be placed.
35: * @return true if the board is full, false otherwise
36: */
37: boolean isFull();
38: }