An SWI-Prolog program for solving the 'four letter word' game.