Update src/main/java/fr/iut_fbleau/info/but3/automation/rock_paper_scissors/play/domain/Move.java
Some checks failed
rock-paper-scissors/pipeline/head There was a failure building this commit

This commit is contained in:
2025-11-29 19:48:26 +01:00
parent b4a28fdcf8
commit a96b007c1f

View File

@@ -9,7 +9,7 @@ public enum Move {
public boolean beats(Move other) {
return switch (this) {
case ROCK -> other == SCISSORS;
case PAPER -> (other == ROCK || other == WELL );
case PAPER -> (other == ROCK || other == WELL);
case SCISSORS -> other == PAPER;
case WELL -> (other == ROCK || other == SCISSORS);
};