Update src/main/java/fr/iut_fbleau/info/but3/automation/rock_paper_scissors/play/domain/Move.java
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