Skip to content

Package: KopfundZahlundKantePlayer

KopfundZahlundKantePlayer

Coverage

1: package de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain;
2:
3: import java.util.Map;
4: import java.util.Optional;
5:
6: import de.fhdw.gaming.core.domain.Player;
7:
8: /**
9: * Represents a player for the head and tail game.
10: */
11: public interface KopfundZahlundKantePlayer extends Player<KopfundZahlundKantePlayer> {
12:
13: /**
14: * Returns the possible outcomes of this player. The key for the first-level map is the answer of the first player,
15: * the key for the second-level map is the answer of the second player.
16: */
17: Map<KopfundZahlundKanteAnswerEnum, Map<KopfundZahlundKanteAnswerEnum, Double>> getPossibleOutcomes();
18:
19: /**
20: * Returns the answer of this player.
21: */
22: Optional<KopfundZahlundKanteAnswerEnum> getAnswer();
23:
24: /**
25: * Records the answer of this player.
26: *
27: * @param answer The player's answer uses enum KopfundZahlAnswerEnum.
28: */
29: void setAnswer(KopfundZahlundKanteAnswerEnum answer);
30: }