Class HotColdSolver

  • public class HotColdSolver
    extends Object
    Solution finder for hot-cold style puzzles.

    These puzzles are established by having some way to test the distance from the solution via "warmth", where being colder means one is farther away from the target, and being warmer means one is closer to it, with the goal being to reach the most warm value to discover the solution point. Hot-cold puzzles in Old School RuneScape are implemented with specific set of solution points, so this solver will filter from a provided set of possible solutions as new signals of temperatures and temperature changes are provided.

    • Constructor Detail

    • Method Detail

      • signal

        public Set<HotColdLocation> signal​(@Nonnull
                                           net.runelite.api.coords.WorldPoint worldPoint,
                                           HotColdTemperature temperature,
                                           HotColdTemperatureChange temperatureChange)
        Process a hot-cold update given a WorldPoint where a check occurred and the resulting temperature and temperature change discovered at that point. This will filter the set of possible locations which can be the solution.
        worldPoint - The point where a hot-cold check occurred
        temperature - The temperature of the checked point
        temperatureChange - The change of temperature of the checked point compared to the previously-checked point
        A set of HotColdLocations which are still possible after the filtering occurs. This return value is the same as would be returned by getPossibleLocations().