Please can you explain what will i do to code this thing up on Prolog?
Mason, Alex, Steve, and Simon arc standing in a police lineup. One of them is blond, handsome, and unscarred. Two of them who are not blond are standing on either side of Mason. Alex is the only one standing next to exactly one handsome man. Steve is the only one not standing next to exactly one scarred man. Who is blond, handsome, and not scared?
i have here,
p --> standing(x,y)
twoOfThem(not blond, standing either side of Mason)
standing(mason,[x,y]):-
blond([x,y]) == false.
Alex only one standing next to exactly one handsome
standing(alex,x):-
handsome(x).
Steve is only not standing next to unscarred.
standing(steve,x):-
unscared(x).