Module 2 · In your browser · challenge 2 of 3 in this lesson

tally returns a dictionary mapping each player name to their total coins

A code cell with the real Luau runner grades it. No Studio needed.

Open

Level 2, Builder

Challenge

Write tally(pickups, value) in the cell below. Passing the assertions completes this challenge.

Start from
The Run cell below
Check it here
Run the code cell; the challenge completes when it passes. No Studio needed.

Done means

  • tally returns a dictionary mapping each player name to their total coins
  • Players who collected more than once accumulate their total
  • An empty pickup list returns an empty table
Luau
Ctrl Enter runs the cell. Checked by tests