Skip to content

Package: KopfundZahlZahlMove

KopfundZahlZahlMove

nameinstructionbranchcomplexitylinemethod
KopfundZahlZahlMove()
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(KopfundZahlState, KopfundZahlPlayer)
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.kopfundzahl.moves.impl;
2:
3: import de.fhdw.gaming.core.domain.GameException;
4: import de.fhdw.gaming.ipspiel22.kopfundzahl.domain.KopfundZahlPlayer;
5: import de.fhdw.gaming.ipspiel22.kopfundzahl.domain.KopfundZahlState;
6:
7: /**
8: * Choose "tail".
9: */
10: public class KopfundZahlZahlMove extends AbstractKopfundZahlMove {
11:
12: @Override
13: public void applyTo(final KopfundZahlState state, final KopfundZahlPlayer player) throws GameException {
14: player.setAnswer(false);
15: }
16:
17: @Override
18: public String toString() {
19: return "choose tail";
20: }
21:
22: }