← All challenges

Determine the Risk of Meeting a Werewolf

September 2014

business-rulesrisk-scoring

Score the risk of encountering a werewolf using two weighted factors: the phase of the moon and the distance from the nearest graveyard.

Phase of the Moon risk

PhaseRisk
New Moon0.01
Half Moon0.25
Three-Quarter Moon0.50
Full Moon0.75

Distance from Graveyard risk

DistanceRisk
< 5 miles0.75
5–25 miles0.25
> 25 miles0.01

Combine the two using weights of 0.75 for the Phase of the Moon and 0.5 for the Distance from Graveyard:

Werewolf Risk = (0.75 × Phase of the Moon Risk) + (0.5 × Distance from Graveyard Risk)

Build a decision model that computes this score for any combination of inputs. (Spoiler from the original solvers: staying home on a full-moon night is your safest bet.)

Send your solutions to DecisionManagementCommunity@gmail.com, or open a pull request to add yours here.

Solutions