lib/dungeon/dungeon_walker.rb
Consider simplifying this complex logical expression. Open
Open
if( room_position != [ top, left ] && top >= 1 && left >= 1 && top <= @dungeon_size && left <= @dungeon_size &&
@rooms.has_key?( [ top, left ] ) )
connected_positions << [ top, left ]
end