McKellarPuzzle.frink

View or download McKellarPuzzle.frink in plain text format


// Attempt to solve a graphical puzzle,
//  https://twitter.com/McKellarMath/status/1025020540518637569/photo/1

use systemSolver2.frink
symbolicMode[true]

simult = new System[[🌳 + 🌲 + spade + 🍁 === 11,
                     🌳 + 🌳 === 2,
                     🌲 - 🌳 === 4,
                     🌲 + 🌲 * spade === 20,
                     🌳 + spade * 🍁 === solution]]
simult.draw[]
println[join["\n",simult.solveAll[]]]


View or download McKellarPuzzle.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 17958 days, 5 hours, 8 minutes ago.