FWIW: In one of my classes, the teacher taught us Prolog by making us write a text adventure using it. It turned out to be well suited to the task. Except for the "publish to the web part".
https://www.cis.upenn.edu/~matuszek/cis554-2015/Assignments/...