Skip to content

Package: AbstractTicTacToeMove

AbstractTicTacToeMove

nameinstructionbranchcomplexitylinemethod
AbstractTicTacToeMove()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: /*
2: * Copyright © 2021 Fachhochschule für die Wirtschaft (FHDW) Hannover
3: *
4: * This file is part of ipspiel22-tictactoe-core.
5: *
6: * ipspiel22-tictactoe-core is free software: you can redistribute it and/or modify it under
7: * the terms of the GNU General Public License as published by the Free Software
8: * Foundation, either version 3 of the License, or (at your option) any later
9: * version.
10: *
11: * ipspiel22-tictactoe-core is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14: * details.
15: *
16: * You should have received a copy of the GNU General Public License along with
17: * ipspiel22-tictactoe-core. If not, see <http://www.gnu.org/licenses/>.
18: */
19: package de.fhdw.gaming.ipspiel22.tictactoe.core.moves.impl;
20:
21: import de.fhdw.gaming.ipspiel22.tictactoe.core.moves.TicTacToeMove;
22:
23: /**
24: * Represents a move allowed by the rules of the game.
25: * <p>
26: * The purpose of this class is solely to be able to check whether an {@link TicTacToeMove} implementation is allowed by
27: * the rules of the game. As this class is not exported, custom strategies are unable to create {@link TicTacToeMove}
28: * objects that inherit from this class, so custom moves can be distinguished from possible moves easily.
29: */
30: public abstract class AbstractTicTacToeMove implements TicTacToeMove {
31:
32: /**
33: * Protected constructor.
34: */
35: protected AbstractTicTacToeMove() {
36: // nothing to do
37: }
38: }