List Commands Library for 50g
|
07-14-2017, 09:37 PM
(This post was last modified: 07-14-2017 10:38 PM by Gilles59.)
Post: #43
|
|||
|
|||
RE: List Commands Library for 50g
Here is a generic program to solve "cryptarithms" :
Code:
Enter the cryptarithm like this, for example : "neuf+un+un==onze" "li+li==cii" (roman numbers "sin^2+cos^2==unite" "3*twenty+2*ten==eighty" "jupiter+saturne+uranus==neptune" Note that: - It uses DOPERM, LDDUP, LSUM, S->SL of the Library of DavidM - use lowercase, it's better to avoid conflicts with names of a function, - buy a pack of beers, it's sloooow even with an emulator - The program searches all the solutions and return a list, but the solutions are displayed on the screen. Note that a beautiful cryptarithm has only one solution. You can change the program to stop at the first one - the program dont check that a number begin with a 'zero'. No comment for the program, but if you run it step by step you will see that its very simple. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 13 Guest(s)