Aggiungi file .gitignore e nuove immagini BMP per il progetto Rat
This commit is contained in:
@@ -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])
|
||||
Reference in New Issue
Block a user