In the above Diagram,
There are many connetions of pieces. First we have to visualize it.
The algorithm of visualization ----
{ Select a piece
|
Select valid squares to move for the piece
|
Cut down the endangered or unnecesssary squares
|
Mark the candidate squares
|
Select a candidate square
|
Look forward from the selected candidate square
|
[ connection found or No connection] } ....(1)
|
if, Connection found,
then, { Mark the connection
|
Deliver it for calculation
|
Store the valuation
|
Go out for Next Candidate square
|
Go out for next Piece
|
( Repeat the algo 1,2,3) } .....(2)
if, No connection,
then, Go ahead from the selected candidate sqaure
|
{ Repeat the (1) & (2) algorithm } ....(3)
The first and foremost part of thinking is Identification. It results in 50% of the thinking. Without performing this step properly all the efforts will go in vain. Any misssing connection of pieces will make changed the result of calculation. Now the question is how to perform well in this step.
Let's see an example ----