Nixie Challenge
The Nixie Challenge gives learners a hands-on way to practise binary fluency. The launch currently ships with two assignments: glowing nixie conversions between base-10 and base-2, and a text-based binary addition drill where each bit is entered individually.
A third option adds a retro seven-segment display for hex ⇄ decimal conversions.
How It Works
Pick an assignment on the Instructor Dashboard (Settings → “Pick the assignment”). Learners see one activity at a time:
- Base-10 ⇄ Base-2 conversions (Base2Conversions): A tabbed card exposes decimal → binary and binary → decimal drills. Learners type the 4s/2s/1s bits and receive instant feedback—no “Check” button required—while a score in the tab header tracks up to 10 correct challenges.
- Hex ⇄ Decimal conversions (HexConversions): Another tabbed card flips between decimal → hex and hex → decimal practice, limited to digits 8–F. Each correct conversion increments a 10-point score displayed beside the tabs.
- Binary addition (BinaryAddition): Two three-bit numbers appear as rows of bits. Learners type each sum bit (including the carry) in individual inputs; feedback updates as soon as all boxes contain 0s or 1s.
Assignment Management
Visit Instructor Dashboard → Settings to choose the active assignment. The dropdown lists “Base-10 ⇄ Base-2 conversions” first, followed by “Binary addition practice”. All instructor dashboards also include Student Data and Launches shortcuts.
🥚 Instructor Easter Eggs
Press Ctrl + * to reveal the secret practice toolkit:
- Ctrl + * – Auto-generate the NOT gate nixie display (42 reference still intact).
- Ctrl + & – Auto-generate the octal-to-binary processing nixie layout.
These shortcuts exist in the interactive tool. The documentation version is hidden until you discover the same shortcut. Recursive easter eggs for the win.
Integrating into a Course
The tool works well as a warm-up activity before teaching binary arithmetic or as follow-up practice after introducing positional number systems.
Suggested Learning Objectives
- Convert three-bit binary numbers to decimal (0–7) and vice versa.
- Explain how the 4s/2s/1s positions contribute to the final decimal value.
- Convert between hex digits (0–F) and decimal values (0–15).
- Add two three-bit binary numbers and express the carry separately.
Accessibility Notes
- Canvas elements include descriptive
aria-label attributes.
- Controls are accessible via keyboard (checkboxes support the space key to toggle).
- Feedback messages use
role="status" so screen readers announce the results.
Developer Notes
The nixie display is implemented in nixie.js using the Canvas 2D API. Assignment routing happens in index.php, so adding new activities only requires adding markup + logic and registering the key in assignments.php. Tab switching is handled in initTabbedCards(), and each drill exposes a simple score tracker that caps at 10.
Adding New Exercises
- Extend
assignments.php and index.php with a new key + markup.
- Implement the exercise logic inside
nixie.js (see initBase2Conversions and initBinaryAddition for patterns).
- Reuse
SimpleNixieDisplay if the activity needs a nixie tube; otherwise create bespoke DOM components.
Testing Checklist
- Ensure each assignment loads the appropriate UI after changing the dropdown in Settings.
- Verify conversions auto-check bit inputs and decimal entry, including validation for empty or out-of-range entries.
- Verify the hex assignment displays random digits 8–F and enforces 0–F / 0–15 ranges with the five-second auto-advance timer.
- Verify binary addition only accepts 0/1, requires all bits before feedback, and highlights the correct sum with a carry.
- Confirm each Tips section links to the Nixie tube article for quick background reading.
- Try the easter egg shortcut (Ctrl + *) within the main tool to reveal the instructor-only features.