/**
 * This function generates a rectangular game map with given size.
 * The map is represented as a list of lists, where each inner list represents a row of the map.
 * Each element of the inner list is a string representing the type of terrain at that position.
 *
 * @param mapSize A tuple containing the number of rows and columns for the map.
 * @return A rectangular game map.
 *
 * Example:
 * generateMap(Pair(3, 4)) returns:
 * [['Grass', 'Grass', 'Grass', 'Grass'],
 *  ['Grass', 'Grass', 'Grass', 'Grass'],
 *  ['Grass', 'Grass', 'Grass', 'Grass']]
 */
fun generateMap(mapSize: Pair<Int, Int>): List<List<String>> {

    val (numRows, numCols) = mapSize
    return List(numRows) { List(numCols) { "Grass" } }
}
/**
 * This function generates a rectangular game map with given size.
 * The map is represented as a list of lists, where each inner list represents a row of the map.
 * Each element of the inner list is a string representing the type of terrain at that position.
 *
 * @param mapSize A tuple containing the number of rows and columns for the map.
 * @return A rectangular game map.
 *
 * Example:
 * generateMap(Pair(3, 4)) returns:
 * [['Grass', 'Grass', 'Grass', 'Grass'],
 *  ['Grass', 'Grass', 'Grass', 'Grass'],
 *  ['Grass', 'Grass', 'Grass', 'Grass']]
 */
fun generateMap(mapSize: Pair<Int, Int>): List<List<String>> {
/**
 * This function generates a rectangular game map with given size.
 * The map is represented as a list of lists, where each inner list represents a row of the map.
 * Each element of the inner list is a string representing the type of terrain at that position.
 *
 * @param mapSize A tuple containing the number of rows and columns for the map.
 * @return A rectangular game map.
 *
 * Example:
 * generateMap(Pair(3, 4)) returns:
 * [['Grass', 'Grass', 'Grass', 'Grass'],
 *  ['Grass', 'Grass', 'Grass', 'Grass'],
 *  ['Grass', 'Grass', 'Grass', 'Grass']]
 */
fun generateMap(mapSize: Pair<Int, Int>): List<List<String>> {

    val (numRows, numCols) = mapSize
    return List(numRows) { List(numCols) { "Grass" } }
}