public Board(IHexValuesGenerator _valuesGenerator) { Cells = new Cell[TOTAL_COLS, TOTAL_ROWS]; m_valuesGenerator = _valuesGenerator; for (var row = 0; row < TOTAL_ROWS; ++row) { for (var col = 0; col < TOTAL_COLS; ++col) { Cells[col, row] = new Cell(col, row); } } GenerateTriplets(); FillEmptyCells(); }
public Game(IHexValuesGenerator _hexValuesGenerator, IPlayer _player) { Player = _player; Board = new Board(_hexValuesGenerator); }