Fix vars format in shiny and towers-of-hanoi formulas (gt-8tmz)

This commit is contained in:
Steve Yegge
2025-12-25 02:03:59 -08:00
parent 2f8bc581a6
commit 62402bd4bd
2 changed files with 23 additions and 6 deletions

View File

@@ -3,8 +3,13 @@
"description": "Engineer in a Box - the canonical right way. Design before you code. Review before you ship. Test before you submit.", "description": "Engineer in a Box - the canonical right way. Design before you code. Review before you ship. Test before you submit.",
"version": 1, "version": 1,
"vars": { "vars": {
"feature": "{{feature}}", "feature": {
"assignee": "{{assignee}}" "description": "The feature being implemented",
"required": true
},
"assignee": {
"description": "Who is assigned to this work"
}
}, },
"steps": [ "steps": [
{ {

View File

@@ -3,10 +3,22 @@
"description": "Solve Towers of Hanoi for {disks} disks. Generates 2^{disks} - 1 steps, each a trivial move operation. Demonstrates mechanical structure generation for arbitrarily long workflows.", "description": "Solve Towers of Hanoi for {disks} disks. Generates 2^{disks} - 1 steps, each a trivial move operation. Demonstrates mechanical structure generation for arbitrarily long workflows.",
"version": 1, "version": 1,
"vars": { "vars": {
"disks": "{{disks}}", "disks": {
"source_peg": "A", "description": "Number of disks to solve",
"target_peg": "C", "required": true
"auxiliary_peg": "B" },
"source_peg": {
"description": "Starting peg",
"default": "A"
},
"target_peg": {
"description": "Target peg",
"default": "C"
},
"auxiliary_peg": {
"description": "Helper peg",
"default": "B"
}
}, },
"generate": { "generate": {
"for-each": { "for-each": {