@@ -78,7 +78,7 @@ def _create_floor(self) -> None:
7878 """
7979 self ._floor = Floor (my_globals .FLOOR_HEIGHT , my_globals .FLOOR_WIDTH , self ._seed )
8080
81- def _add_new_room (self , new_room_tuple , room_tuple_queue : deque ) -> bool :
81+ def _add_new_room (self , new_room_tuple : Tuple [ int , int ] , room_tuple_queue : deque ) -> bool :
8282 """
8383 Checks if a room can be added at the new position
8484 and if possible adds it to the queue and floor grid.
@@ -93,7 +93,7 @@ def _add_new_room(self, new_room_tuple, room_tuple_queue: deque) -> bool:
9393 and util_functions .place_room ()
9494 ):
9595 room_tuple_queue .append (new_room_tuple )
96- self ._floor .add_to_floor_grid (new_room_tuple [ 0 ], new_room_tuple [ 1 ] )
96+ self ._floor .add_to_floor_grid (* new_room_tuple )
9797 return True
9898 return False
9999
@@ -251,7 +251,7 @@ def _place_big_boss_room(self, possible_locations: List, boss_room: Room) -> boo
251251 if (
252252 direction [0 ] in possible_locations
253253 and direction [1 ] in possible_locations
254- and self ._floor .has_no_neighbours (corner [ 0 ], corner [ 1 ] )
254+ and self ._floor .has_no_neighbours (corner )
255255 ):
256256 self ._add_rooms_next_to_room (boss_room , direction )
257257 return True
@@ -287,7 +287,7 @@ def _check_if_not_contains_room_and_has_no_neighbours(
287287 floor = self ._floor
288288 return not floor .contains_room (
289289 (point [0 ], point [1 ])
290- ) and floor .has_no_neighbours (point [ 0 ], point [ 1 ] )
290+ ) and floor .has_no_neighbours (point )
291291
292292 def add_special_rooms (self , dead_ends : list ) -> None :
293293 """
0 commit comments