CGI/Perl Guide | Learning Center | Forums | Advertise | Login Site Search: in Perl Guide PerlGuru Forums Learning Ctr
 MAIN INDEX SEARCHPOSTS WHO'S ONLINE LOG IN

Home: Need a Custom or Prewritten Perl Program?: Throw Down The Gauntlet:
Countdown numbers game solver that maintains order

Bananabean
New User

Oct 28, 2013, 3:45 AM

Post #1 of 1 (240484 views)
 Countdown numbers game solver that maintains order Can't Post
I am hoping for a very kind developer to make a target solver that maintains the order of its seed numbers.

The basis of this solver could be https://github.com/rvedotrc/numbers

Example 1
Target = 4085. Word = BRAVO. Known values: B = 7, R = 15, A = 3, V = 18, O = 5 entered in that order.
Solution = (B+RAV)O = (7 + 15 * 3 * 18) * 5 = 4085
Note that the target number should ideally be allowed to have more than 3 digits.

Example 2
Target = 3341. Word = CHARLIE. Known values: C = 25, H = 26, A = 3, R = 15, L = 9, I = 21, E = 2 entered in that order.
Solution = C+(H-A+RL)I-E = 25 + (26 - 3 + 15 * 9) * 21 - 2 = 3341
Note that there should ideally be up to 7 entered values.

The letters are not necessary but explain why I want this program.

I now have such a program so there is no need for any help.
Thank you for looking - more than 10000 have done so!