Skip to content

Package: OthelloStrategyFactory

OthelloStrategyFactory

Coverage

1: /*
2: * Copyright © 2020-2023 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.factory;
20:
21: import de.fhdw.gaming.othello.core.domain.OthelloStrategy;
22: import de.fhdw.gaming.othello.core.moves.factory.OthelloMoveFactory;
23:
24: /**
25: * Represents a factory creating Othello strategies.
26: */
27: @FunctionalInterface
28: public interface OthelloStrategyFactory {
29:
30: /**
31: * Creates an Othello strategy.
32: *
33: * @param moveFactory The {@link OthelloMoveFactory} to use.
34: * @return The Othello strategy.
35: */
36: OthelloStrategy create(OthelloMoveFactory moveFactory);
37: }