Subtraction Win
subtraction_winWhether the player to move wins a subtraction game on a heap of n with perfect play. A win is a nonzero Grundy value. With moves 1, 2, and 3, 5 is a win and 4 is a loss. n runs from 0 to 500. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/subtraction-win
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": "<n>",
"moves": "<moves>"
},
"name": "subtraction_win"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| moves | Yes |