update-code #1

Open
Patrick FELIX-VIMALARATNAM wants to merge 5 commits from update-code into main
Showing only changes of commit a96b007c1f - Show all commits

View File

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