Skip to contentPackage: MinimaxStrategy
MinimaxStrategy
Coverage
      1: package de.fhdw.gaming.ipspiel24.minimax;
2: 
3: import java.util.List;
4: 
5: import de.fhdw.gaming.core.domain.Move;
6: import de.fhdw.gaming.core.domain.Player;
7: import de.fhdw.gaming.core.domain.State;
8: import de.fhdw.gaming.core.domain.Strategy;
9: 
10: /**
11:  * TODO missing comment.
12:  *
13:  * @param <P> TODO
14:  * @param <S> TODO
15:  * @param <M> TODO
16:  */
17: public interface MinimaxStrategy<P extends Player<P>, S extends State<P, S>, M extends Move<P, S>>
18:         extends Strategy<P, S, M> {
19: 
20:     /**
21:      * TODO missing comment.
22:      *
23:      * @param state TODO
24:      */
25:     List<M> getPossibleMoves(S state); // throws GameException
26: 
27:     /**
28:      * TODO missing comment.
29:      *
30:      * @param state  TODO
31:      * @param player TODO
32:      * @param depth  TODO
33:      */
34:     int evaluate(S state, P player, int depth); // throws GameException
35: 
36:     /**
37:      * TODO missing comment.
38:      *
39:      * @param state         TODO
40:      * @param currentPlayer TODO
41:      */
42:     P getOpponent(S state, P currentPlayer);
43: 
44: }