Skip to content

Commit cacf6c0

Browse files
unhappychoiceclaude
andcommitted
feat: include Zen challenges in main challenge loading
- Add Zen challenges (entire files) to standard challenge generation - Fix missing Zen challenges in title screen challenge count - Zen challenges now appear alongside other difficulty levels 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 03efba5 commit cacf6c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/extractor/repository_loader.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,15 @@ impl RepositoryLoader {
6060

6161
progress.set_step(crate::game::models::loading_steps::StepType::Generating);
6262
// Expand chunks into multiple challenges across difficulties
63-
let challenges = self
63+
let mut challenges = self
6464
.converter
6565
.convert_chunks_to_challenges_with_progress(chunks, progress);
6666

67+
// Also add Zen challenges (entire files)
68+
let file_paths = self.collect_source_files(repo_path)?;
69+
let zen_challenges = self.converter.convert_whole_files_to_challenges(file_paths);
70+
challenges.extend(zen_challenges);
71+
6772
progress.set_step(crate::game::models::loading_steps::StepType::Finalizing);
6873
Ok(challenges)
6974
}

0 commit comments

Comments
 (0)