Re: Problem
- From: Matthijs Wensveen <mrw@xxxxxxxxxx>
- Date: Wed, 25 May 2005 23:33:49 +0200
Hi Martin,
This looks kind of similar to the problem I asked a few days ago in the thread "newbie: Out of local stack, matching values from 0 to 10".
The answer that worked for me was to use between(0,9,X).
This will make X match 0 to (and including) 9.
In your case, since you want to have the entire set, numlist(Low, High, List). would be a better option.
Good luck.
Matthijs.
PS. It's good to see I'm not the only newbie around :)
martin wrote:
Hello,
I need to genarate 36 numerical values. Priecesly, I have a board 4 x 9 and I want to fill it by numbers (4 sets 1..9). Besides there are some rules that every cell must meet. I am a beginner at programming in Prolog and I have no idea how to start. If to try to generate 36 single values or to try to generate a list of values. I would be very grateful for every suggestion
Regards, Martin
.
- References:
- Problem
- From: martin
- Problem
- Prev by Date: interpreter?
- Next by Date: Re: Prolog for beginners.
- Previous by thread: Problem
- Next by thread: Re: Problem
- Index(es):
Relevant Pages
|
|