title: Using Prolog to solve a brain teaser (Master Mind)
body: <p>A friend from work shared this with our whatsapp group:</p>
  
  <blockquote>
    <p><i>This lock has a 3 digit code.<br>
    Can you guess it using only these hints?</i></p>
    
    <p><a href="https://i.stack.imgur.com/QxJMM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QxJMM.png" alt="If you had to solve this using Prolog how&#39;d you do it?"></a></p>
  </blockquote>
  
  <p>We solved it using something akin to a truth table. I'm curious however, how would this be solved in Prolog?</p>