refactor(machine_a_trier): update adaptive difficulty to level-based streaks#369
Conversation
…e consecutive perfect levels instead of perfect item drops Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This change introduces level-based streak logic in the "Sorting Machine" (
machine_a_trier.html) application. Previously, theScoreManager's default behavior would aggressively suggest bumping up the difficulty based solely on consecutive correct item drops.Now, the game only suggests progressing to the next difficulty level if the player perfectly sorts all items in an entire level without a single mistake, two times in a row.
Changes:
perfectLevelsStreakandmistakesInCurrentLevelvariables.ScoreManager.checkAdaptiveDifficultyto prevent per-item popups.c2_change_difficultyevent listener so that the adaptive popup correctly registerseasy,medium, andhardtransitions instead of referencing numerical keys.PR created automatically by Jules for task 14341640135608460403 started by @Animation-EdNum