Skip to content

Package: VGRandomMoveStrategyFactory

VGRandomMoveStrategyFactory

nameinstructionbranchcomplexitylinemethod
VGRandomMoveStrategyFactory()
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%
create(VGMoveFactory)
M: 5 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.vierGewinnt.strategy;
2:
3: import de.fhdw.gaming.ipspiel22.vierGewinnt.domain.VGStrategy;
4: import de.fhdw.gaming.ipspiel22.vierGewinnt.domain.factory.VGStrategyFactory;
5: import de.fhdw.gaming.ipspiel22.vierGewinnt.moves.factory.VGMoveFactory;
6:
7: /**
8: * Implements {@link VGStrategyFactory} by creating a {@link VGRandomMoveStrategy}.
9: */
10: public class VGRandomMoveStrategyFactory implements VGStrategyFactory {
11:
12: @Override
13: public VGStrategy create(final VGMoveFactory moveFactory) {
14: return new VGRandomMoveStrategy(moveFactory);
15: }
16:
17: }