Closed Adrian-Moldovan closed 1 month ago
Currently, the map tiles property is updated by calling the Array.map() method, which is ineficient.
We should avoid the iteration and directly modifying the tile by accessing the row and col indexes and de-structuring the object.
Improved/ corrected tile update logic in Game component:
Currently, the map tiles property is updated by calling the Array.map() method, which is ineficient.
We should avoid the iteration and directly modifying the tile by accessing the row and col indexes and de-structuring the object.