3 Commits

Author SHA1 Message Date
a58c9c30ae Ajout Puit #3
All checks were successful
rock-paper-scissors/pipeline/pr-main This commit looks good
2025-11-27 11:21:39 +01:00
d0e2476807 Ajout Puit #2
All checks were successful
rock-paper-scissors/pipeline/pr-main This commit looks good
2025-11-27 11:11:11 +01:00
57d3bd7316 Ajout Puit
All checks were successful
rock-paper-scissors/pipeline/head This commit looks good
rock-paper-scissors/pipeline/pr-main This commit looks good
2025-11-27 11:03:06 +01:00
2 changed files with 6 additions and 2 deletions

View File

@@ -32,9 +32,11 @@ class MoveTest {
static Stream<Arguments> winnable(){
return Stream.of(
Arguments.of(Move.ROCK,Move.SCISSORS),
Arguments.of(Move.PAPER,Move.ROCK,Move.WELL),
Arguments.of(Move.PAPER,Move.ROCK),
Arguments.of(Move.PAPER,Move.WELL),
Arguments.of(Move.SCISSORS,Move.PAPER),
Arguments.of(Move.WELL,Move.ROCK, Move.SCISSORS)
Arguments.of(Move.WELL,Move.ROCK),
Arguments.of(Move.WELL,Move.SCISSORS)
);
}
}

View File

@@ -4,6 +4,7 @@ import fr.iut_fbleau.info.but3.automation.rock_paper_scissors.play.domain.Move;
import fr.iut_fbleau.info.but3.automation.rock_paper_scissors.play.spi.RandomCpuPicker;
import org.junit.jupiter.api.Test;
import java.util.HashSet;
import java.util.Set;
@@ -24,5 +25,6 @@ class RandomCpuPickerTest {
assertTrue(obtainedMoves.contains(Move.ROCK));
assertTrue(obtainedMoves.contains(Move.PAPER));
assertTrue(obtainedMoves.contains(Move.SCISSORS));
assertTrue(obtainedMoves.contains(Move.WELL));
}
}