Board Logo
« Words = Numbers, Code Puzzle #2 »

Welcome Guest. Please Login or Register.
Oct 17th, 2017, 3:23pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Please use the forums Search feature before asking.
Please post code using the code box described in Format Your Messages.
This will keep indentation, separate it better form the message and prevent gibberish.
If the code is too long for one post or additional files are needed, upload a ZIP archive to the Just BASIC Files Archive Site.

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Words = Numbers, Code Puzzle #2  (Read 175 times)
bplus
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1180
xx Words = Numbers, Code Puzzle #2
« Thread started on: Jul 6th, 2017, 12:55pm »

If anyone has solved:
NOON + MOON + SOON = JUNE

Here is another:
THIS + IS + NOT + WITH = WHICH

Every letter is a code for a unique digit ie no two letters code the same digit.

No Word = Number may start with 0, so in the above examples N <> 0 because it starts a word.

For those who learn by example, we have 3 fine solutions to a simular puzzle in the thread "Basic coding" page 3 and 4, replies #39 to 49. http://justbasic.conforums.com/index.cgi?board=novice&num=1497366202&action=display&start=30
Followed by a more detailed step by step instruction for building a code solution for a similar puzzle.
User IP Logged

B+
Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3100
xx Re: Words = Numbers, Code Puzzle #2
« Reply #1 on: Jul 6th, 2017, 3:50pm »

Both done, didn't really learn anything from it other than words are fickle. Much prefer coding and crystal clear logic.

Be interesting to see if any beginner bites.
User IP Logged

bplus
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1180
xx Re: Words = Numbers, Code Puzzle #2
« Reply #2 on: Jul 6th, 2017, 8:33pm »

Hi,

Just finished coding my solutions for the two Words = Numbers, Code puzzles.

The new puzzle in this thread has three answers for:

this + is + not + with = which

For the previous:
noon + moon + soon = june
two word = numbers can be switched. (edited line)


I must have learned something because modifying the puzzle from 4 letters to 6 took way longer than modifying the solution going from 6 letters to 8.

I also learned to keep code neat and readable without indentation (all the geese flying in "v" formation).

Of course, in the back of my mind I was also studying how I might code a Generic Solution. So I guess the job wasn't as tedious as it could have been.
« Last Edit: Jul 7th, 2017, 09:33am by bplus » User IP Logged

B+
bplus
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1180
xx Re: Words = Numbers, Code Puzzle #2
« Reply #3 on: Jul 7th, 2017, 09:32am »

Check your code, solutions posted here
http://justbasic.conforums.com/index.cgi?action=display&board=novice&num=1497366202&start=45#1499436435
reply #55
User IP Logged

B+
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3558
xx Re: Words = Numbers, Code Puzzle #2
« Reply #4 on: Jul 8th, 2017, 3:29pm »

I just found (by waiting long wait)
that
"noon + moon + soon = june" has not 6 different letters but 7.

Here's one with 6 letters (so programs works faster):
"no + no + too = late"
« Last Edit: Jul 8th, 2017, 3:32pm by tsh73 » User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
bplus
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 1180
xx Re: Words = Numbers, Code Puzzle #2
« Reply #5 on: Jul 8th, 2017, 3:48pm »

tsh73 Quote:
"noon + moon + soon = june" has not 6 different letters but 7.


Yep! Apologies to all for my poor counting. I was calling it a 6 letter puzzle when in fact it is a 7 letter puzzle.

Sorry, I have not been getting regular amounts of sleep lately.

Why else would I entertain the idea of using a goto? wink
« Last Edit: Jul 8th, 2017, 3:49pm by bplus » User IP Logged

B+
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls