Fudge is grainy or sugary
Why: The sugar was not fully dissolved before the mixture boiled, or the chocolate got too hot.
What to do: Stir until the sugar dissolves before the mixture comes to a boil, and melt chocolate on low heat, stopping as soon as it is smooth.
Brittle is sticky or chewy
Why: The syrup did not reach 300°F (149°C), or damp air got to it.
What to do: Check your thermometer, cook brittle on a dry day, and store it in a tin with a tight lid.
Plus a candy-stages chart with the old-fashioned cold-water test, so you can tell soft-ball from hard-crack with just a cup of cold water, and a quick boiling-water check for your candy thermometer.
One batch of fudge that won't set can waste around $12 of sugar, butter, chocolate and nuts. This whole cookbook costs about the same, and it helps you save the batch, or skip the mistake.