Skip to contentPackage: IEvaluationStrategy
IEvaluationStrategy
Coverage
      1: package de.fhdw.gaming.ipspiel23.tictactoe.core.evaluation;
2: 
3: import java.util.Optional;
4: 
5: import de.fhdw.gaming.ipspiel23.tictactoe.core.domain.TicTacToeState;
6: 
7: /**
8:  * Interface for the evaluation strategy used to evaluate the state of a Tic-Tac-Toe game.
9:  * Evaluation strategies are responsible for assigning a score to a game state, 
10:  * indicating the desirability of that state.
11:  * Implementations of this interface should provide a method to evaluate the given Tic-Tac-Toe game state.
12:  * 
13:  * The evaluation result is an optional integer value, 
14:  * where a higher value represents a more desirable state for the current player.
15:  * 
16:  * @see TicTacToeState
17:  * @see java.util.Optional
18:  * 
19:  */
20: public interface IEvaluationStrategy {
21:      
22:     /**
23:      * Evaluates the given Tic-Tac-Toe game state.
24:      * 
25:      * @param state The Tic-Tac-Toe game state to be evaluated.
26:      * @return An optional containing the evaluation result as an integer value.
27:      */
28:      Optional<Integer> evaluateState(TicTacToeState state);
29: }