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

Method Game

java/Chapter 8/Question8_8/Game.java:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 private final int COLUMNS = 10;
9
10 private Game() {
11 board = new Board(ROWS, COLUMNS);
12 players = new Player[2];
13 players[0] = new Player(Color.Black);
14 players[1] = new Player(Color.White);
15 Automator.getInstance().initialize(players); // used for testing
16 }
17
18 public static Game getInstance() {
19 if (instance == null) {

Callers

nothing calls this directly

Calls 2

getInstanceMethod · 0.95
initializeMethod · 0.45

Tested by

no test coverage detected