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

Method getScore

java/Chapter 8/Question8_8/Player.java:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 }
8
9 public int getScore() {
10 return Game.getInstance().getBoard().getScoreForColor(color);
11 }
12
13 public boolean playPiece(int row, int column) {
14 return Game.getInstance().getBoard().placeColor(row, column, color);

Callers 2

isOverMethod · 0.80
printScoresMethod · 0.80

Calls 3

getInstanceMethod · 0.95
getScoreForColorMethod · 0.80
getBoardMethod · 0.80

Tested by

no test coverage detected