public class HotColdSolver extends Object
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 and Description|
|Modifier and Type||Method and Description|
Process a hot-cold update given a
public Set<HotColdLocation> signal(@Nonnull WorldPoint worldPoint, @Nonnull HotColdTemperature temperature, @Nullable HotColdTemperatureChange temperatureChange)
WorldPointwhere 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
HotColdLocations which are still possible after the filtering occurs. This return value is the same as would be returned by
Copyright © 2014–2020. All rights reserved.