MCPcopy Index your code
hub / github.com/careercup/ctci / isOver

Method isOver

java/Chapter 8/Question8_8/Automator.java:78–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 public boolean isOver() {
79 if (players[0].getScore() == 0 || players[1].getScore() == 0) {
80 return true;
81 }
82 return false;
83 }
84
85 public void printScores() {
86 System.out.println("Score: " + players[0].getColor().toString() + ": " + players[0].getScore() + ", " + players[1].getColor().toString() + ": " + players[1].getScore());

Callers 1

mainMethod · 0.95

Calls 1

getScoreMethod · 0.80

Tested by

no test coverage detected