Skip to content

Package: KopfundZahlZahlMove

KopfundZahlZahlMove

nameinstructionbranchcomplexitylinemethod
KopfundZahlZahlMove()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
applyTo(KopfundZahlState, KopfundZahlPlayer)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
toString()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

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: }