A hint helps only by the amount the other player wants
A clue that says too little does not touch the problem, and one that says too much gives the answer away. In Mastermind, the person who set the code has to judge what the solver needs.
From De Koven, 2013, ch. 4. De Koven, B. (2013). The well-played game: a player's philosophy. Cambridge, MA: MIT Press. ISBN 978-0-262-01917-0. DOI 10.7551/mitpress/9722.001.0001. (Written in 1978; the copy is the 2013 MIT Press edition, with a foreword by Eric Zimmerman and a new preface.)