While Prolog can be used as a general-purpose programming language, it’s not very popular for that since its syntax and semantics is unfamiliar to most programmers, and it can be quite tricky to write ...