Repository navigation
Turn 2.2 Boolean Expressions examples into code-runner exercises - #87
Merged
Merged
Conversation
Wires the intro example and both popcorn hacks into the site's interactive Java code-runner (codemirror: true + CODE_RUNNER markers), and adds a new "Try It Yourself" exercise. Students can now edit and run each snippet in-browser instead of only reading static code blocks. Also fixes a cross-contamination bug where plain ``` fences inside answer-reveal cells desynced the runner metadata mapping for later cells — reveals now use <pre><code> instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This was referenced Sep 22, 2026
Wick2009
pushed a commit
that referenced
this pull request
Sep 22, 2026
Pulls in the officially-rebuilt version of the 2.02 lesson from Open-Coding-Society/pages: LxD design-cycle section, a richer College Board + Java Language Specification reference section, three interactive activities (a live comparison lab, a sort-the- expressions drag exercise, and a bug-hunt MCQ), Popcorn/Homework Hacks, a grading rubric, and the standard assignment-submission footer. Supersedes the hand-built draft from PR #86/#87. Also pulls the two supporting assets the lesson depends on: assets/js/csa-lessons/unit2-interactives.js (self-contained, dependency-free) and _sass/open-coding/csa-unit2-interactive.scss, registered via one @import line in _main.scss. Scoped to just this lesson -- the other Unit 2 lessons (2.1, 2.3-2.12) are left alone since other PRs may already be updating them. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
codemirror: true+// CODE_RUNNER:markers) so students can edit and actually run them in-browser instead of reading static code blocks.```fences inside markdown "answer reveal" cells were being counted byscripts/convert_notebooks.pyas if they were real code cells, desyncing the runner-metadata pairing for every code-runner cell after them. Reveals now use<pre><code>instead of fenced code blocks to avoid this.Test plan
convert_notebooks.py→_posts/projects/java)/run/java), same as every other code-runner lesson on the site.ipynbis included🤖 Generated with Claude Code