Yes, but it does not print anything. It loads and then just stops
I have done it for all
System.out.println(wordPlay.rockPaperScissors("rock"));...
Type: Posts; User: Taronus
Yes, but it does not print anything. It loads and then just stops
I have done it for all
System.out.println(wordPlay.rockPaperScissors("rock"));...
It tests who has won by the selection of rock
so sorry !
assertTrue(Arrays.asList(answers).contains(wordPlay.rockPaperScissors("rock")));
Now that you say that I notice that I do not use the String "choice" anywhere...
Thought the...
else if (computerChoice.equalsIgnoreCase("paper"))
This is my Test code:
@Test
void testRockPaperScissors() {
String[] answers = {"USER:rock vs COMP:scissors user wins",
"USER:paper vs COMP:rock user wins",
"USER:scissors vs...
Hey there,
I am really stuck with one of my codes. It is about the paper stone scissors game.
Here is my code:
public String rockPaperScissors(String choice) {