Implement a Triangular minesweeper (Structure should also be a triangle). Create 2 API's. One that let's you create the game and randomly place n mines in it You only get number of rows and number of mines as input. Another one, given the row and column index gets you number of neighbouring mines.
Note: A triangle would be considered a neighbour if it shares at least one corner with the triangle requested by the given row and column index.
![]()