MCPcopy
hub / github.com/careercup/ctci / printBoard

Method printBoard

java/Chapter 8/Question8_8/Board.java:124–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 public void printBoard() {
125 for (int r = 0; r < board.length; r++) {
126 for (int c = 0; c < board[r].length; c++) {
127 if (board[r][c] == null) {
128 System.out.print("_");
129 } else if (board[r][c].getColor() == Color.White) {
130 System.out.print("W");
131 } else {
132 System.out.print("B");
133 }
134 }
135 System.out.println();
136 }
137 }
138}

Callers 2

playRandomMethod · 0.95
mainMethod · 0.45

Calls 2

printMethod · 0.45
getColorMethod · 0.45

Tested by

no test coverage detected