Prolog: An AI program that plays Eternagame

One of my big problems right now is that the only way I have to find out which of the ‘candidates’ is an actual solution is to enter each sequence through the GUI of eternagame. This is pretty much impractical for more than a few sequences. I could get much more useful results if there were some way to run my output file, as a whole, through eternagame and have it tell me which ones worked.