czuger/square-dungeon-gen

View on GitHub
lib/dungeon/dungeon_walker.rb

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
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
Severity: Major
Found in lib/dungeon/dungeon_walker.rb - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status