Share Tips, Code Samples, etc. with the Visual Prolog community.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 17 Oct 2006 6:02
Here is a 15-Puzzle Game program I wrote in Visual Prolog 6.1 two years ago.
The program uses scrollbars, it is possible save, open and replay the game.
To run it in Visual Prolog 7.0 delete from VDE :
vip7edit.lib
vip7vpi.lib.
CalmoSoft Fifteen Puzzle Game - video
Greetings,
Gal Zsolt
CalmoSoft
You do not have the required permissions to view the files attached to this post.
Last edited by CalmoSoft on 1 Sep 2023 17:25, edited 58 times in total.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 2 May 2007 20:19
CalmoSoft Fifteen Puzzle Game in Visual Prolog 7.0
CalmoSoft Fifteen Puzzle Game - video
Greetings,
Gal Zsolt
CalmoSoft
You do not have the required permissions to view the files attached to this post.
Last edited by CalmoSoft on 29 Sep 2023 19:21, edited 20 times in total.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 25 Jul 2007 9:27
CalmoSoft Fifteen Puzzle Game in Visual Prolog 7.1
CalmoSoft Fifteen Puzzle Game - video
Greetings,
Gal Zsolt
CalmoSoft
You do not have the required permissions to view the files attached to this post.
Last edited by CalmoSoft on 2 Sep 2023 12:18, edited 17 times in total.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 14 Aug 2007 18:06
Last edited by CalmoSoft on 1 Sep 2023 17:26, edited 20 times in total.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 27 Mar 2014 15:25
CalmoSoft Fifteen Puzzle Game in Visual Prolog 7.4
If you have Visual Prolog Personal Edition please copy the attached "vpiOldDomains" to "pfc\vpi\vpiOldDomains".
CalmoSoft Fifteen Puzzle Game - video
Greetings,
Gal Zsolt
CalmoSoft
You do not have the required permissions to view the files attached to this post.
Last edited by CalmoSoft on 2 Sep 2023 12:19, edited 11 times in total.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 27 Jul 2014 15:32
CalmoSoft Fifteen Puzzle Game in Visual Prolog 7.5
If you have Visual Prolog Personal Edition please copy the attached "vpiOldDomains" to "pfc\vpi\vpiOldDomains".
CalmoSoft Fifteen Puzzle Game - video
Greetings,
Gal Zsolt
CalmoSoft
You do not have the required permissions to view the files attached to this post.
Last edited by CalmoSoft on 2 Sep 2023 12:19, edited 10 times in total.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 11 Aug 2017 8:04
Here is the CalmoSoft Fifteen Puzzle Game in Visual Prolog 8.0
If you have Visual Prolog Personal Edition please copy the attached "vpiOldDomains" to "pfc\vpi\vpiOldDomains".
Please Rebuild All.
CalmoSoft Fifteen Puzzle Game - video
Greetings,
Gal Zsolt
CalmoSoft
You do not have the required permissions to view the files attached to this post.
Last edited by CalmoSoft on 1 Sep 2023 17:28, edited 7 times in total.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 17 Feb 2019 19:00
Hello,
I want update my
CalmoSoft Fifteen Puzzle Game to VIP 8.0
I have a question.
What change the next code for:
predicates
onDestroy : vpiOldDomains::destroyHandler.
clauses
onDestroy() = vpiOldDomains::defaultHandling() :-
thisWin := erroneous.
Greetings,
Gal Zsolt
CalmoSoft
Last edited by CalmoSoft on 1 Sep 2023 16:20, edited 2 times in total.
Thomas Linder Puls
VIP Member
Posts: 1466 Joined: 28 Feb 2000 0:01
Post
by Thomas Linder Puls » 17 Feb 2019 21:07
Your program seems to work in Vip8 with very few changes, and the mentioned code does not need to be changed. So I assume that you are doing a more fundamental update to the newer gui structure. In that structure you don't have a thisWin fact, and your destroy handler will therefore not do anything at all. Subsequently, it is more natural not to have a destroy handler at all.
If you are updating it more radically, I think you should update it to be an SDI application.
Regards Thomas Linder Puls
PDC
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 20 Feb 2019 9:42
Hello Thomas,
Thanks for your useful help and suggestions.
Greetings,
Gal Zsolt
CalmoSoft
Last edited by CalmoSoft on 1 Sep 2023 16:21, edited 3 times in total.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 14 Mar 2019 14:43
Hello Thomas et All,
Here is the
CalmoSoft Fifteen Puzzle Game in Visual Prolog 9.0 CE (Commercial Edition)
CalmoSoft Fifteen Puzzle Game - video
Greetings,
Gal Zsolt
CalmoSoft
You do not have the required permissions to view the files attached to this post.
Last edited by CalmoSoft on 1 Sep 2023 17:28, edited 6 times in total.
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 8 Nov 2019 8:01
Hello Thomas,
I need your help.
I want to update code to the newer gui structure.
I have the next code:
Code: Select all
predicates
onDestroy : vpiOldDomains :: destroyHandler .
clauses
onDestroy( ) = vpiOldDomains:: defaultHandling ( ) :-
thisWin := erroneous .
I get the next error message:
PlayWindow\playDialog.pro(29,21)
error c218 : Unknown class/interface 'vpiOldDomains' in pack 'PlayWindow\PlayWindow.pack'
What to do?
Greetings,
Gal Zsolt
CalmoSoft
You do not have the required permissions to view the files attached to this post.
Last edited by CalmoSoft on 1 Sep 2023 16:21, edited 2 times in total.
Thomas Linder Puls
VIP Member
Posts: 1466 Joined: 28 Feb 2000 0:01
Post
by Thomas Linder Puls » 8 Nov 2019 9:21
The Personal Edition doesn't contain vpiOldDomains .
When I compile the project with the Commercial Edition I don't get any errors.
Notice that when upgrading to the newer gui structure you will not need vpiOld Domains.
Regards Thomas Linder Puls
PDC
CalmoSoft
VIP Member
Posts: 73 Joined: 17 Oct 2006 5:49
Post
by CalmoSoft » 8 Nov 2019 9:45
Hello Thomas,
Thanks for your help and informations.
Greetings,
Gal Zsolt
CalmoSoft
Last edited by CalmoSoft on 1 Sep 2023 16:22, edited 2 times in total.
Thomas Linder Puls
VIP Member
Posts: 1466 Joined: 28 Feb 2000 0:01
Post
by Thomas Linder Puls » 8 Nov 2019 14:08
Notice that you already knew it (see a couple of mails above
).
Regards Thomas Linder Puls
PDC