Skip to content

Commit

Permalink
Merge pull request #154 from abeger/67_alphametics_json
Browse files Browse the repository at this point in the history
Alphametics: Adding test json
  • Loading branch information
kytrinyx committed Dec 4, 2015
2 parents 7b8a24f + 4c525eb commit 9b23ca2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions alphametics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"solve": {
"description": "Solve the alphametics puzzle",
"cases": [
{
"description": "solve short puzzle",
"puzzle": "I + BB == ILL",
"expected": { "I": 1, "B": 9, "L": 0 }
},
{
"description": "solve long puzzle",
"puzzle": "SEND + MORE == MONEY",
"expected": { "S": 9, "E": 5, "N": 6, "D": 7, "M": 1, "O": 0, "R": 8, "Y": 2 }
},
{
"description": "solve puzzle with multiplication",
"puzzle": "IF * DR == DORI",
"expected": { "I": 8, "F": 2, "D": 3, "R": 9, "O": 1 }
},
{
"description": "solve puzzle with exponents",
"puzzle": "PI * R ^ 2 == AREA",
"expected": { "P": 9, "I": 6, "R": 7, "A": 4, "E": 0 }
}
]
}
}

0 comments on commit 9b23ca2

Please sign in to comment.