public BingoCard(int[][] rows) { tiles = new BingoTile[5, 5]; for (uint i = 0; i < tiles.GetLength(0); i++) { for (uint j = 0; j < tiles.GetLength(1); j++) { tiles[i, j] = new BingoTile(rows[i][j]); } } }
public BingoBoard(int[,] values) { for (var i = 0; i < Constants.BOARD_W; ++i) { for (var j = 0; j < Constants.BOARD_H; ++j) { board[i, j] = new BingoTile { Value = values[i, j], Called = false }; } } }