So Happy ;)
Posted: 15 Sep 2009, 21:06
Hello everyone,
just a topic to say than i have finally found with koggestone algorithm and some precomputed array a good way for isPinned functions.
With this fen string 2k3r1/8/8/8/6N1/4b3/7Q/q3B1K1 w - - 0 1 my engine found the rights moves.
1 : The white king on g1 move to f1
2 : The white king on g1 move to h1
3 : The white king on g1 move to g2
4 : The white queen on h2 move to f2
This with koggestone algorithm orthogonalMove and diagonalMove and a precomputed table than indicate
the direction between two squares indexed by from and to square.
May be it is a little for some great guys but for me, i just share my happiness.
Really, koggestone is wonderfull.
A wonderful website to visualize fen position
http://www.dhtmlgoodies.com/scripts/che ... fen-3.html
Best Regards
NaltaP
just a topic to say than i have finally found with koggestone algorithm and some precomputed array a good way for isPinned functions.
With this fen string 2k3r1/8/8/8/6N1/4b3/7Q/q3B1K1 w - - 0 1 my engine found the rights moves.
1 : The white king on g1 move to f1
2 : The white king on g1 move to h1
3 : The white king on g1 move to g2
4 : The white queen on h2 move to f2
This with koggestone algorithm orthogonalMove and diagonalMove and a precomputed table than indicate
the direction between two squares indexed by from and to square.
May be it is a little for some great guys but for me, i just share my happiness.
Really, koggestone is wonderfull.
A wonderful website to visualize fen position
http://www.dhtmlgoodies.com/scripts/che ... fen-3.html
Best Regards
NaltaP