Cryptarithm solver

For this project, I worked on my C# by constructing a brute force cryptarithm solver.

I started off by making a translator, i.e. AAA+BBB=CC –> 111+444=22 etc etc. Then I made a for loop that takes in the number of variables and then cycles through a for loop in powers of ten to test every possible value. It then evaluates the expression, and if the numbers are correct it will print the values.

This was a fun little problem to solve as a break from the quaternion rendering engine issue, just to get my brain working again. I hope to make more short project posts like this.

One thought on “Cryptarithm solver

Leave a Reply

Your email address will not be published.