games:
  - type: memory-match
    title: "Pattern Pairs"
    pairs:
      - term: "Factory"
        definition: "Creates objects without specifying exact class"
      - term: "Observer"
        definition: "Notifies dependents of state changes"
      - term: "Strategy"
        definition: "Swaps algorithms at runtime"
      - term: "Singleton"
        definition: "Single instance globally"
      - term: "Adapter"
        definition: "Wraps incompatible interface"
      - term: "Decorator"
        definition: "Adds behavior without subclassing"
      - term: "Loose Coupling"
        definition: "Minimal dependencies between components"
      - term: "Gang of Four"
        definition: "Original design pattern catalog authors"

  - type: classify
    title: "Pattern Sorter"
    categories:
      - name: Creational
        color: "#58a6ff"
      - name: Structural
        color: "#3fb950"
      - name: Behavioral
        color: "#d29922"
    items:
      - text: "Factory"
        category: "Creational"
      - text: "Singleton"
        category: "Creational"
      - text: "Builder"
        category: "Creational"
      - text: "Adapter"
        category: "Structural"
      - text: "Decorator"
        category: "Structural"
      - text: "Proxy"
        category: "Structural"
      - text: "Observer"
        category: "Behavioral"
      - text: "Strategy"
        category: "Behavioral"
      - text: "Command"
        category: "Behavioral"
      - text: "Iterator"
        category: "Behavioral"
      - text: "Template Method"
        category: "Behavioral"
      - text: "Composite"
        category: "Structural"
