This project solves Cryptarithmetic puzzles using a brute-force approach with permutations. Given a puzzle like "SEND + MORE = MONEY"
, the program finds a valid digit substitution where each letter represents a unique digit (0-9). The solution is displayed in an interactive HTML page with a beautifully formatted table and solved equation.
β
Solves Cryptarithmetic puzzles using brute-force search π
β
Ensures no leading zeros in word values π«0οΈβ£
β
Generates an interactive HTML file with the solution π
β
User-friendly table visualization for letter-to-digit mapping π
β
Styled output with a gradient background & color-coded results π¨
1οΈβ£ User inputs a cryptarithmetic equation (e.g., SEND + MORE = MONEY
). βοΈ
2οΈβ£ The program finds a valid digit substitution for each letter using permutations. π’
3οΈβ£ The sum of words is checked to match the given result. β
4οΈβ£ The solution is saved as an HTML file for easy visualization. ποΈ
5οΈβ£ Open the generated HTML file in a browser to view the solved equation and letter mapping. π
Ensure you have Python 3.x installed. No external dependencies are needed.
Run the following command in a terminal or command prompt:
python cryptarithmetic_solver.py