forked from pierront/rock-paper-scissors
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
Some checks failed
rock-paper-scissors/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user