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 

Two small in-register-lookups
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Tord Romstad



Joined: 08 Mar 2006
Posts: 1750
Location: Oslo, Norway

PostPost subject: Re: Two small in-register-lookups    Posted: Wed Apr 25, 2007 7:40 am Reply to topic Reply with quote

What do you guys use the square color for? I can't imagine that this could possibly be a performance bottleneck. I compute the square color in the most straightforward and stupid way possible, and it still doesn't show up in the profiler output at all. Currently I use the square color for the following purposes:

  • Testing for opposite colored bishop endgames (only done in the endgame, and only when both sides have no minor pieces except a single bishop).
  • Evaluating knights and bishops on weak squares. The bonus is increased if the other side has no minor pieces except a single bishop (or no minor pieces at all), and this bishop is of the wrong color.
  • Evaluating KBN vs K endgames. The color of the bishop's square is used to drive the king into the right corner.
  • Detecting KBP vs K draws with a bishop of the wrong color.
  • Printing an ASCII board.


Most of these don't occur except in very rare cases. I guess that I use my square_color function less than once per node, on average.

Tord
Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
Two small in-register-lookups Gerd Isenberg Mon Apr 23, 2007 10:28 pm
      Re: Two small in-register-lookups J. Wesley Cleveland Tue Apr 24, 2007 9:08 am
            Re: Two small in-register-lookups H.G.Muller Tue Apr 24, 2007 9:51 am
                  Re: Two small in-register-lookups Gerd Isenberg Tue Apr 24, 2007 11:00 am
            Re: Two small in-register-lookups Gerd Isenberg Tue Apr 24, 2007 10:58 am
                  Re: Two small in-register-lookups H.G.Muller Tue Apr 24, 2007 12:37 pm
                        Re: Two small in-register-lookups Gerd Isenberg Tue Apr 24, 2007 6:36 pm
                              Re: Two small in-register-lookups Gerd Isenberg Tue Apr 24, 2007 8:11 pm
                                    Re: Two small in-register-lookups H.G.Muller Tue Apr 24, 2007 9:48 pm
                                          Re: Two small in-register-lookups Gerd Isenberg Tue Apr 24, 2007 9:57 pm
                                                Re: Two small in-register-lookups Tord Romstad Wed Apr 25, 2007 7:40 am
                                                      Re: Two small in-register-lookups H.G.Muller Wed Apr 25, 2007 9:49 am
                                                            Re: Two small in-register-lookups Tord Romstad Wed Apr 25, 2007 10:53 am
                                                                  Re: Two small in-register-lookups H.G.Muller Wed Apr 25, 2007 12:01 pm
                                                      Re: Two small in-register-lookups Gerd Isenberg Fri Apr 27, 2007 7:41 pm
                        Re: Two small in-register-lookups Gerd Isenberg Fri Apr 27, 2007 7:44 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