ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Distance to King Formula - J-Value
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Fermin Serrano



Joined: 08 Feb 2008
Posts: 291
Location: Madrid - Spain

PostPost subject: Re: Distance to King Formula - J-Value    Posted: Thu Jul 29, 2010 6:42 am Reply to topic Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Subject Author Date/Time
Distance to King Formula - J-Value Joshua Haglund Sun Jan 17, 2010 7:48 am
      Re: Distance to King Formula - J-Value Joshua Haglund Wed Jul 28, 2010 11:16 pm
            Re: Distance to King Formula - J-Value Vlad Stamate Wed Jul 28, 2010 11:28 pm
                  Re: Distance to King Formula - J-Value Joshua Haglund Wed Jul 28, 2010 11:39 pm
                        Re: Distance to King Formula - J-Value Joshua Haglund Wed Jul 28, 2010 11:45 pm
                              Re: Distance to King Formula - J-Value Vlad Stamate Wed Jul 28, 2010 11:47 pm
      Re: Distance to King Formula - J-Value Fermin Serrano Thu Jul 29, 2010 6:42 am
            Re: Distance to King Formula - J-Value Joshua Haglund Tue Aug 03, 2010 6:12 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
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




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads