This is a claw machine made entirely from a Mindstorms 2.0 kit. It is controlled by two touch sensors and utilizes the timer function, so to operate you hold down the buttons to move left or right, and tap both at the same time to "grab". this was really fun to build and rather simple, so go ahead and mess around with it! If you have any questions please leave a comment.
On this website you simply download the code straight to your nxt program. The programing is so similar it would need very little tweaking(if any to start with) to get it going. Hope this helps!