Skip to content

Add momentum-aware movement optimization for chefBot #183

@kevinmaes

Description

@kevinmaes

Parent Issue: #180

Objective

Leverage chef physics (accel=1, decel=7) more intelligently for smoother, more efficient movement.

Current Problem

The bot doesn't fully account for:

  • Asymmetric acceleration/deceleration
  • Benefits of maintaining current direction
  • Coasting opportunities vs hard-braking

Proposed Solution

  1. Direction momentum bonus: Increase score for eggs in current movement direction
  2. Pre-positioning: Move toward anticipated cluster centers early
  3. Coast-to-position: Use deceleration distance intelligently instead of overshooting and correcting

Implementation Details

  1. Add calculateOptimalApproach() in tests/machines/helpers.ts
  2. Consider current speed and direction in scoring
  3. Add bonus for eggs requiring no direction change: +0.3 * (currentSpeed / speedLimit)
  4. Calculate deceleration zones and prefer natural stopping points

Impact

  • Smoother movement patterns
  • Better catch rates through optimal positioning
  • Fewer wasted frames on direction changes

Success Metrics

  • Reduced direction changes per game
  • Improved catch efficiency (catches per distance traveled)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions