TP conversion assistance
Posted: 1 May 2017 16:27
25 years ago I wrote a program in Turbo Prolog 1.1 to figure out a competition draw for N teams. This was for my squash club. At that time (1991) the owners of draws kept them as heirlooms - they were precious and difficult to produce. The program worked very well even if it did take over 4 hours to figure out a draw for 18 teams, running on an old 33MHz 80386.
I am now in the middle of a PhD program and have a need for some Prolog to link into other code I have written as part of my project. To refresh my Prolog skills I dragged out the old Draw program and converted it to Visual Prolog, keeping it as a console app for now.
I rarely ask for help on forums, but this is an exception. At my age I need all the hair I have left.
Nothing I do will make this program compile. The errors are all about predicate types and flow patterns. I have read every piece of documentation, done every tutorial, poured over sample programs, but still cannot figure out where I am going wrong.
I seem to be missing some key piece of knowledge but I don't know what it is.
What is confusing is that this program worked just fine under TP1.1. Furthermore I actually wrote it so I must have known something about Prolog back then.
I have attached the program which includes the old code and sample output as a comment block.
I would be forever grateful if someone could find the time to have a look at it.
Maybe my error will jump out at an expert. surely the differences between TP and VP are not that great.
I am now in the middle of a PhD program and have a need for some Prolog to link into other code I have written as part of my project. To refresh my Prolog skills I dragged out the old Draw program and converted it to Visual Prolog, keeping it as a console app for now.
I rarely ask for help on forums, but this is an exception. At my age I need all the hair I have left.
Nothing I do will make this program compile. The errors are all about predicate types and flow patterns. I have read every piece of documentation, done every tutorial, poured over sample programs, but still cannot figure out where I am going wrong.
I seem to be missing some key piece of knowledge but I don't know what it is.
What is confusing is that this program worked just fine under TP1.1. Furthermore I actually wrote it so I must have known something about Prolog back then.
I have attached the program which includes the old code and sample output as a comment block.
I would be forever grateful if someone could find the time to have a look at it.
Maybe my error will jump out at an expert. surely the differences between TP and VP are not that great.