KenKen Cage Target Product/Sum Validator
Validate observed KenKen cage arithmetic with order-independent two-cell difference/quotient and exact bounded products; repeated values are not universally barred across different rows/columns. Latin-square constraints omitted.
Description
A KenKen cage evaluates one operation over supplied values.
A KenKen cage evaluates one operation over supplied values. Cage arithmetic does not enforce row or column uniqueness.1
Enter 1–12 integer cell values 1–order with order 1–16, positive target and supported operation. Difference/quotient require two cells; single requires one. Product must stay a safe integer. Return computed value and exact-equality target flag.
When to use KenKen Cage Target Product/Sum Validator
Use KenKen Cage Target Product/Sum Validator when you need to evaluate the supplied records under the calculation and evidence rules below. No cage placement, Latin-square constraints or puzzle solution is checked.
Prepare the supplied game state, observations and explicit variant settings. Follow the card, board, coordinate and state conventions in the calculation rules.
How to use KenKen Cage Target Product/Sum Validator and understand its results
- Prepare the supplied game state, observations and explicit variant settings. Follow the card, board, coordinate and state conventions in the calculation rules.
- Enter cageValues, callerGridOrder, operation, targetValue using the field table and calculation rules, then run the tool.
- Read observedArithmeticResult, cageTargetMatches. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
| Input field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| cageValues | Cage values | list of number | Required |
| callerGridOrder | Caller grid order | number | Required |
| operation | Operation | string | Required |
| targetValue | Target value | number | Required |
Enter 1–12 integer cell values 1–order with order 1–16, positive target and supported operation. Difference/quotient require two cells; single requires one. Product must stay a safe integer. Return computed value and exact-equality target flag.
sum/product; absolute difference of two; larger/smaller quotient; single value Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| observedArithmeticResult | Observed arithmetic result | number |
| cageTargetMatches | Cage target matches | boolean |
{
"input": {
"cageValues": [
3,
4
],
"callerGridOrder": 6,
"operation": "product",
"targetValue": 12
},
"output": {
"observedArithmeticResult": 12,
"cageTargetMatches": true
}
} Limitations and assumptions
No cage placement, Latin-square constraints or puzzle solution is checked.
Numeric inputs, where present, must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Numeric lists are limited to 10,000 entries; string lists to 128 strings of at most 128 characters each. The rules above may impose smaller limits. Extremely large text inputs are rejected. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors. A successfully returned false flag is an evaluated outcome; its meaning is explained above.
Alternative or Complementary methods
Use Kakuro Row Sum Distinct Digits Check: A Kakuro run uses distinct digits 1–9. Unknown cells can be checked by enumerating remaining digit combinations. For a complementary task, use Nonogram Clue Sum + Gaps Length Check: A nonogram line needs room for runs and separating empty cells. Caller end padding adds an independent requirement.
References
-
KenKen Cage Target Product/Sum Validator — tool.io
Similar or alternative tools
- Kakuro Row Sum Distinct Digits Check
A Kakuro run uses distinct digits 1–9. Unknown cells can be checked by enumerating remaining digit combinations.
- Nonogram Clue Sum + Gaps Length Check
A nonogram line needs room for runs and separating empty cells. Caller end padding adds an independent requirement.