Guest_imported
New member
- Jan 1, 1970
- 0
I'm trying to write a prolog program (study exercise) that solves a certain type of puzzles:
We got 2 words, say: send and more and a third word, say: money. Now those words should be added to each other:
eg.
send
more
----- +
money
Each letter should be replaced with a number so that the everything checks out (each letter must be a different number). I had some ideas on how to do this, but none seems to work, could anyone give me some ideas on how to start???
Thanks a lot!
We got 2 words, say: send and more and a third word, say: money. Now those words should be added to each other:
eg.
send
more
----- +
money
Each letter should be replaced with a number so that the everything checks out (each letter must be a different number). I had some ideas on how to do this, but none seems to work, could anyone give me some ideas on how to start???
Thanks a lot!