Skip to content

Package: KopfundZahlundKanteZahlMove

KopfundZahlundKanteZahlMove

nameinstructionbranchcomplexitylinemethod
KopfundZahlundKanteZahlMove()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
applyTo(KopfundZahlundKanteState, KopfundZahlundKantePlayer)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
toString()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: package de.fhdw.gaming.ipspiel22.kopfundzahlundkante.moves.impl;
2:
3: import de.fhdw.gaming.core.domain.GameException;
4: import de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain.KopfundZahlundKanteAnswerEnum;
5: import de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain.KopfundZahlundKantePlayer;
6: import de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain.KopfundZahlundKanteState;
7:
8: /**
9: * Choose "tail".
10: */
11: public class KopfundZahlundKanteZahlMove extends AbstractKopfundZahlundKanteMove {
12:
13: @Override
14: public void applyTo(final KopfundZahlundKanteState state,
15: final KopfundZahlundKantePlayer player) throws GameException {
16: player.setAnswer(KopfundZahlundKanteAnswerEnum.TAIL);
17: }
18:
19: @Override
20: public String toString() {
21: return "choose tail";
22: }
23: }