Take off the trim from around the perimeter of the room with your hammer and pry bar. Keep the trim intact as you remove it so you can re-install it later. The removal of the trim should expose a small space between the edges of the floorboards and the walls.
Use your hands to push on the laminate floor boards along the wall closest to the scratched boards. Loosen the edge boards by wiggling them into the space along the wall. Leave them sitting loosely on the floor after they're disconnected.
Repeat and continue, loosening the boards course by course. Leave the loosened boards in place, in the same order they were in. Work out across the floor, gradually disassembling all the boards until you get to the damaged ones.
Remove the damaged boards. Set the replacement boards in their place, connecting them by their edges.
Snap the other boards back together in the opposite order that you disassembled them, working your way back toward the wall course by course.
Re-install the floor trim, using trim nailer.