| View previous topic :: View next topic |
| Author |
Message |
Fermin Serrano

Joined: 08 Feb 2008 Posts: 291 Location: Madrid - Spain
|
Post subject: Re: Distance to King Formula - J-Value Posted: Thu Jul 29, 2010 6:42 am |
|
|
| jhaglund wrote: | Here's my program I made that could be helpful to some people. It calculates the distance to king, j-value, from an attacking square.
I used ICCF Numeric Chess Notation.
// test example
//83 - 21
//str[0] = 8;
//str[1] = 3;
//strk[0] = 2;
//strk[1] = 1;
//ga = 8
//gb = 3
//la = 2
//lb = 1
83-21 (h3 - b1) = 6.0408
Comments?
Joshua D. Haglund
|
Not sure, but maybe work with decimal numbers need more CPU time and could be counterproductive. Your idea need testing in order to know if it is worthy _________________ Fermin Serrano
http://clonfsp.wordpress.com
http://sites.google.com/site/clonfsp/ |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|