The Darwin Awards are a tongue-in-cheek1 honour, originating in Usenet2 newsgroup discussions around 1985. They recognize individuals who have supposedly contributed to human evolution3 by selecting4 themselves out of the gene pool5 via death6 or sterilization by their own actions.
There are 5 rules to be selected:
Source: Wikipedia7
Take a look at the following program that can be used during the selection.
sterile_because(rouen,climbing_ethernet_cable).
excellence(rouen,climbing_ethernet_cable).
self_selection(climbing_ethernet_cable).
adult(rouen).
veracity(climbing_ethernet_cable).
stupid(X) :- excellence(X,_).
human(X) :- adult(X).
human(X) :- child(X).
nominee(Name) :-
sterile_because(Name, What),
excellence(Name,What),
self_selection(What),
adult(Name),
veracity(What).
Write following facts:
atoms/1
: that gives number of atoms in the code abovepredicates/1
: that gives number of predicates in the code above (with arrity > 0)facts/1
: that gives number of facts in the code aboverules/1
: that gives number of rules in the code aboveclauses/1
: that gives number of clauses in the code above