All code challenges
Medium20 minutes

Inventory stacks

Slots with per-item stack sizes from a config: fill, overflow, remove and free slots.

  • 5 functions

    The skeleton has the functions to write. Each one throws "TODO" until you implement it.

  • 2 files

    Bugs can hide in any file, config included.

  • 8 tests

    Some are visible, some hidden. Run them as often as you like; your code runs in a sandbox.

  • 5 AI prompts

    Your AI pair programmer can explain and show short snippets, but won't write the functions. Every prompt is on your scorecard.

  • Stay on this tab

    Leaving the tab or window is logged. Leave 3 times and the code challenge submits itself. Pasting code from outside is blocked.

  • What we save

    Your final files, test runs, AI chat and tab leaves, plus your score.