Minesweeper Board Generation
Asked at Block · Coding Questions · Difficulty: Easy
Implement a function to generate a Minesweeper game board. The input is the number of columns, rows, and the number of mines: implement `generate_minesweeper_board(col, row, number_of_mines)` and return a board containing mines. In the board, `'_'` represents a non-mine cell and `'*'` represents a mine. The board dimensions and mine count must match the inputs.
Loading the problem…