# Hill Climbing Search - 8 queens [closed]

In that picture, I am having trouble counting why there are 17 pairs of queens. I can only count 14. I counted 10 diagonal pairs and 5 horizontal pairs. Can someone please elaborate on this?

I am not exactly sure how it was numbered, but I believe the numbers on the board represent the new number of pairs that are attacking each other if a queen in that column were to move to that square.

## closed as off-topic by Tom van der Zanden, David Richerby, Luke Mathieson, Juho, Gilles♦May 7 '16 at 10:05

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not appear to be about computer science, within the scope defined in the help center." – Tom van der Zanden, Luke Mathieson
If this question can be reworded to fit the rules in the help center, please edit the question.

• This picture is so confusing, how was it numbered? what is all about 17? Could you expand the description of the problem? – jonaprieto May 2 '16 at 5:40
• Ok, first there are not 17 queens but stated as 17 pairs of queens attacking each other (you have confusing description), and second - this question started as hill climbing, but are you really asking to help you count attacking queens in the blue picture. I counted out of curiosity, I see 17, what next? You have too small count of diagonals. – Evil May 2 '16 at 6:12
• I'm voting to close this question as off-topic because it is a request to count features of a particular diagram, not a question about computer science. – David Richerby May 2 '16 at 15:00

5 - Horizontal attacks