Skip to content

Package: OthelloGameBuilderFactory

OthelloGameBuilderFactory

Coverage

1: /*
2: * Copyright © 2020 Fachhochschule für die Wirtschaft (FHDW) Hannover
3: *
4: * This file is part of othello-core.
5: *
6: * Othello-core is free software: you can redistribute it and/or modify
7: * it under the terms of the GNU General Public License as published by
8: * the Free Software Foundation, either version 3 of the License, or
9: * (at your option) any later version.
10: *
11: * Othello-core is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with othello-core. If not, see <http://www.gnu.org/licenses/>.
18: */
19: package de.fhdw.gaming.othello.core.domain;
20:
21: import de.fhdw.gaming.core.domain.GameBuilderFactory;
22: import de.fhdw.gaming.core.domain.GameException;
23: import de.fhdw.gaming.core.ui.InputProvider;
24:
25: /**
26: * An Othello {@link GameBuilderFactory} which allows to create an Othello game builder.
27: */
28: public interface OthelloGameBuilderFactory extends GameBuilderFactory {
29:
30: /**
31: * Parameter for the number of rows (and columns) of the board.
32: */
33: String PARAM_BOARD_SIZE = "boardSize";
34: /**
35: * Parameter that determines if a player is using black or white tokens.
36: */
37: String PARAM_PLAYER_USING_BLACK_TOKENS = "playerUsingBlackTokens";
38:
39: @Override
40: OthelloGameBuilder createGameBuilder(InputProvider inputProvider) throws GameException;
41: }