~ CalmoSoft Fifteen Puzzle Game ~

Share Tips, Code Samples, etc. with the Visual Prolog community.
User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

~ CalmoSoft Fifteen Puzzle Game ~

Unread 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 Puzzle Game Demo

Image

Regards,
Gal Zsolt
(~ CalmoSoft ~)
Attachments
CalmoSoft_Puzzle.zip
CalmoSoft Puzzle in Visual Prolog 7.0
(29.55 KiB) Downloaded 1358 times
Last edited by CalmoSoft on 29 Nov 2018 9:41, edited 36 times in total.
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

CalmoSoft Puzzle Game

Unread post by CalmoSoft » 2 May 2007 20:19

CalmoSoft Puzzle Game in Visual Prolog 7.0

CalmoSoft Puzzle Game Demo

Image

Regards,
Gal Zsolt
(~ CalmoSoft ~)
Attachments
CalmoSoft_Puzzle_20070502.zip
CalmoSoft Puzzle in Visual Prolog 7.0
(31.21 KiB) Downloaded 909 times
Last edited by CalmoSoft on 30 Jul 2014 14:39, edited 8 times in total.
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

CalmoSoft Puzzle Game

Unread post by CalmoSoft » 25 Jul 2007 9:27

CalmoSoft Puzzle Game in Visual Prolog 7.1

CalmoSoft Puzzle Game Demo

Image

Regards,
Gal Zsolt
(~ CalmoSoft ~)
Attachments
CalmoSoft_Puzzle_20070725.zip
CalmoSoft Puzzle in Visual Prolog 7.1
(32.67 KiB) Downloaded 952 times
Last edited by CalmoSoft on 30 Jul 2014 14:39, edited 8 times in total.
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

Unread post by CalmoSoft » 14 Aug 2007 18:06

CalmoSoft Puzzle Game Demo

Regards,
Gal Zsolt
(~ CalmoSoft ~)
Last edited by CalmoSoft on 9 Jul 2018 3:54, edited 12 times in total.
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

CalmoSoft Puzzle Game

Unread post by CalmoSoft » 27 Mar 2014 15:25

CalmoSoft Puzzle Game in Visual Prolog 7.4

If you have Visual Prolog Personal Edition please copy the attached "vpiOldDomains" to "pfc\vpi\vpiOldDomains".

CalmoSoft Puzzle Game Demo

Image

Regards,
Gal Zsolt
(~ CalmoSoft ~)
Attachments
vpiOldDomains.zip
vpiOldDomains
(2.21 KiB) Downloaded 455 times
CalmoSoft_Puzzle_20140327.zip
CalmoSoft Puzzle Game in Visual Prolog 7.4
(38.28 KiB) Downloaded 465 times
Last edited by CalmoSoft on 7 Aug 2014 12:03, edited 2 times in total.
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

CalmoSoft Puzzle Game in Visual Prolog 7.5

Unread post by CalmoSoft » 27 Jul 2014 15:32

CalmoSoft Puzzle Game in Visual Prolog 7.5

If you have Visual Prolog Personal Edition please copy the attached "vpiOldDomains" to "pfc\vpi\vpiOldDomains".

CalmoSoft Puzzle Game Demo

Image

Regards,
Gal Zsolt
(~ CalmoSoft ~)
Attachments
CalmoSoft_Puzzle_20140727.zip
CalmoSoft Puzzle Game in Visual Prolog 7.5
(31.42 KiB) Downloaded 537 times
vpiOldDomains.zip
vpiOldDomains
(2.21 KiB) Downloaded 568 times
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

Unread 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 Puzzle Game Demo

Image

Regards,
Gal Zsolt
(~ CalmoSoft ~)
Attachments
vpiOldDomains.zip
vpiOLdDomains
(2.21 KiB) Downloaded 164 times
CalmoSoft_Puzzle_20140727.zip
CalmoSoft Fifteen Puzzle Game
(31.42 KiB) Downloaded 177 times
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

Re: ~ CalmoSoft Fifteen Puzzle Game ~

Unread 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 ~)
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

User avatar
Thomas Linder Puls
VIP Member
Posts: 2447
Joined: 28 Feb 2000 0:01

Re: ~ CalmoSoft Fifteen Puzzle Game ~

Unread 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

User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

Re: ~ CalmoSoft Fifteen Puzzle Game ~

Unread 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 14 Mar 2019 14:46, edited 1 time in total.
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

User avatar
CalmoSoft
Active Member
Posts: 48
Joined: 17 Oct 2006 5:49

Re: ~ CalmoSoft Fifteen Puzzle Game ~

Unread 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

Image

Greetings,
Gal Zsolt
(~ CalmoSoft ~)
Attachments
CalmoSoftFifteenPuzzleGame.zip
(31.32 KiB) Downloaded 51 times
There are two types of programmers :
the one who already uses Ring
or Visual Prolog and the others
who are going to use them some time.
(~ CalmoSoft ~)
calmosoft@gmail.com

Post Reply