From 15b9b5477b8e0152b4975fdbb8cabae012bce0d2 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Apr 2026 01:57:11 +0000 Subject: [PATCH] feat(engine): show challenge mode progress in stats overlay Stats screen (S key) now shows "Challenge: N / total" in the Progression section so players can see how far they've advanced through the challenge seed list without leaving the screen. Co-Authored-By: Claude Sonnet 4.6 --- solitaire_engine/src/stats_plugin.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/solitaire_engine/src/stats_plugin.rs b/solitaire_engine/src/stats_plugin.rs index fde1c55..976e973 100644 --- a/solitaire_engine/src/stats_plugin.rs +++ b/solitaire_engine/src/stats_plugin.rs @@ -15,6 +15,7 @@ use solitaire_data::{ WEEKLY_GOALS, }; +use crate::challenge_plugin::challenge_progress_label; use crate::events::{GameWonEvent, NewGameRequestEvent}; use crate::game_plugin::GameMutation; use crate::progress_plugin::ProgressResource; @@ -194,6 +195,10 @@ fn spawn_stats_screen( "Daily Streak: {}", p.daily_challenge_streak )); + lines.push(format!( + "Challenge: {}", + challenge_progress_label(p.challenge_index) + )); lines.push(String::new()); lines.push("-- Weekly Goals --".to_string()); for goal in WEEKLY_GOALS {