Mousetrap works by players taking turns to move their mice around the board, collecting cheese wedges along the way. When a player lands on a space with a specific action, various parts of the mousetrap contraption are triggered, ultimately leading to the capture of the opposing player's mouse.