Skip to content

Enhance chefBot decision-making intelligence #180

@kevinmaes

Description

@kevinmaes

Overview

The chefBot currently has a solid scoring system for choosing which eggs to catch, but there are several opportunities to make it significantly smarter about decision-making and catch optimization.

Current Implementation

The bot uses findBestEgg() in tests/machines/helpers.ts with multi-factor scoring:

  • Base value scoring (gold=5pts, white=1pt, black=-10pts)
  • Distance and time-to-catch calculations
  • Black egg danger detection and path blocking
  • Cluster bonuses for sequential eggs
  • Direction change penalties

Sub-Issues (Implementation Roadmap)

Phase 1: Quick Wins

Phase 2: Advanced Optimizations

Phase 3: Complex Features

Files to Modify

  • tests/machines/helpers.ts - Core scoring and decision logic
  • tests/machines/chefBot.machine.ts - Bot state machine integration

Success Metrics

  • Higher average scores in automated test runs
  • Fewer missed catchable eggs
  • Fewer black egg collisions
  • Better performance with multiple simultaneous eggs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions