Skip to content

calebrotich/cryptarithm-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cryptarithm-solver Build Status

A javascript solution to a CryptArithmetic puzzle

Problem definition

In the multiplication problem below, each letter represents a UNIQUE digit. Write a script to find all possible solutions. The final output of the script should generate the total number of unique solutions and should display each solution in the format below with the digits replaced.

        FUN
  x     BBQ
        ---------------
        SUMMER 

How to test the script

  1. Clone the repository and cd into the project folder
  2. Ensure that you have node installed to be able to use npm and to also run the application
  3. Install Packages npm install
  4. Run node script.js to view the solution
  5. Run npm test -- --coverage to run the test modules

Technologies

  1. JavaScript (Node.js, npm)
  2. Jest for tests
  3. TravisCI for continous Integration

credits

Script written in response to a challenge by Ideas Come To Life

License

MIT - Feel free to use in part or whole

About

A javascript solution to a CryptArithmetic puzzle

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages