Aggiungi file .gitignore e nuove immagini BMP per il progetto Rat

This commit is contained in:
2024-12-08 01:45:16 +01:00
parent b89c4ae375
commit a6a06d1d54
764 changed files with 153 additions and 126 deletions
+9
View File
@@ -0,0 +1,9 @@
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])