diff --git a/cicaprojekt/Tester.java b/cicaprojekt/Tester.java index 3111d65..56fc9de 100644 --- a/cicaprojekt/Tester.java +++ b/cicaprojekt/Tester.java @@ -55,6 +55,29 @@ public class Tester { } } + void rotate(String playerParam, String directionParam) { + switch (playerParam) { + case "O" : + switch (directionParam) { + case "L" : + oneill.rotateLeft(); + break; + case "R" : + oneill.rotateRight(); + break; + } + case "J" : + switch (directionParam) { + case "L" : + jaffa.rotateLeft(); + break; + case "R" : + jaffa.rotateRight(); + break; + } + } + } + /* custom Test annotation */ @Target(ElementType.METHOD) // it's for methods @Retention(RetentionPolicy.RUNTIME) // we want to retain annotations in runtime