Skip to content

Add title and description metadata to betting strategy functions#38

Merged
tphummel merged 1 commit into
mainfrom
claude/strategy-metadata
Mar 28, 2026
Merged

Add title and description metadata to betting strategy functions#38
tphummel merged 1 commit into
mainfrom
claude/strategy-metadata

Conversation

@tphummel
Copy link
Copy Markdown
Owner

Summary

  • Attaches .title and .description properties directly to each betting strategy function
  • No changes to calling conventions — fully backwards compatible
  • Enables library consumers to inspect metadata alongside any strategy reference

Usage

import * as betting from './betting.js'

// inspect a single strategy
console.log(betting.pressPlaceSixEight.title)
// "Press Place Six and Eight"
console.log(betting.pressPlaceSixEight.description)
// "Place 6 and 8. On each win, press the winning number by one $6 unit..."

// enumerate all strategies with metadata
Object.values(betting).forEach(fn => {
  console.log(fn.name, fn.title, fn.description)
})

Test plan

  • npm test passes

https://claude.ai/code/session_014eGPTjvjipJGzhMkGoM7tc

Properties are attached directly to the function objects so consumers
can inspect strategy.title and strategy.description alongside the
function identifier without any change to calling conventions.

https://claude.ai/code/session_014eGPTjvjipJGzhMkGoM7tc
@tphummel tphummel merged commit 5d9d7a2 into main Mar 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants