3 Commits

Author SHA1 Message Date
0a3e375ec9 correction
Some checks are pending
rock-paper-scissors/pipeline/head This commit looks good
rock-paper-scissors/pipeline/pr-main Build started...
2025-11-27 11:30:13 +01:00
6ee72f6939 correction
All checks were successful
rock-paper-scissors/pipeline/head This commit looks good
2025-11-27 11:00:07 +01:00
b39bf8b726 correction puit
Some checks failed
rock-paper-scissors/pipeline/head There was a failure building this commit
2025-11-27 10:54:18 +01:00
3 changed files with 3 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ public enum Move {
case ROCK -> other == SCISSORS;
case PAPER -> other == ROCK || other == WELL;
case SCISSORS -> other == PAPER;
case WELL -> other == PAPER;
case WELL -> other == ROCK || other == SCISSORS;
};
}
}

View File

@@ -46,9 +46,7 @@ public class PlayControllerTest {
public static Stream<Arguments> scenario() {
return Stream.of(
Arguments.of(Move.ROCK, Move.SCISSORS, WIN),
Arguments.of(Move.ROCK, Move.PAPER, LOOSE),
Arguments.of(Move.WELL, Move.PAPER, LOOSE),
Arguments.of(Move.ROCK, Move.WELL, WIN)
Arguments.of(Move.ROCK, Move.PAPER, LOOSE)
);
}

View File

@@ -36,7 +36,7 @@ class MoveTest {
Arguments.of(Move.SCISSORS,Move.PAPER),
Arguments.of(Move.WELL,Move.ROCK),
Arguments.of(Move.WELL,Move.SCISSORS),
Arguments.of(Move.WELL,Move.PAPER)
Arguments.of(Move.PAPER,Move.WELL)
);
}
}