You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
280 B

import json
class Map:
"""Classe che rappresenta la mappa del labirinto."""
def __init__(self, maze_file):
with open(maze_file, 'r') as file:
self.matrix = json.load(file)
self.height = len(self.matrix)
self.width = len(self.matrix[0])