I can't get it to work and I am having troubles figuring out how it is suspose to work. I'm sorry could some one explain what is up with the code for runs. Your code is not so much a simplification as something different. I didn't count the points, just list the pairs. I didn't even know we were dealing with cribbage. # count the 4 card combinations that add up to 15 # count the 3 card combinations that add up to 15 # count the 2 card combinations that add up to 15