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 

Incremental or non-incremental PST evaluation calcs
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Mark Pearce



Joined: 12 Jan 2012
Posts: 61
Location: London, England

PostPost subject: Incremental or non-incremental PST evaluation calcs    Posted: Thu Jan 26, 2012 12:16 am Reply to topic Reply with quote

I've been drawn back into the computer chess community by the Rybka controversy, and decided to resurrect my old Fortran/assembly chess engine and update it with modern techniques. My weapon of choice is now C#

I put together a magic bitboard board representation, move generator, and move make/unmake. To my pleasant surprise, perft from the initial position not only produces the correct moves, but also runs at around 16M nodes per second on a single physical core. Modern hardware is just so impressive.

By "node", I mean generating the pseudo-legal moves, checking for move validity, then doing the move make/unmake. There is no bulk-counting or transposition table.

Flushed with success, I started to implement the evaluation function. Currently this is just the material score and interpolated PSTs using the opening/endgame trick popularised by Fruit and Toga.

Unfortunately, doing this evaluation on every leaf node in perft 6 reduced the nodes-per-second from 16M to 4M - ouch! Tonight I implemented an incremental PST evaluation, where the PST score is adjusted during every move make/unmake. This helped dramatically, bringing the node count back up to 12M.

So I have 2 questions.

Do the majority of people do incremental (PST or other) evaluation, given this magnitude of performance difference, or am I missing something?

My PST calcs use opening/endgame interpolation. Is this rather expensive (managed arrays?) trick really worthwhile from the ELO perspective, or is it better to stick with static PST values?
_________________
Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Chess programmers combine theory and practice: Nothing works and they don't know why.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Subject Author Date/Time
Incremental or non-incremental PST evaluation calcs Mark Pearce Thu Jan 26, 2012 12:16 am
      Re: Incremental or non-incremental PST evaluation calcs Robert Hyatt Thu Jan 26, 2012 12:51 am
            Re: Incremental or non-incremental PST evaluation calcs Mark Pearce Thu Jan 26, 2012 11:53 pm
                  Re: Incremental or non-incremental PST evaluation calcs Robert Hyatt Fri Jan 27, 2012 5:37 am
                        Re: Incremental or non-incremental PST evaluation calcs H.G.Muller Fri Jan 27, 2012 8:05 am
                              Re: Incremental or non-incremental PST evaluation calcs Sven Schüle Fri Jan 27, 2012 11:27 am
                                    Re: Incremental or non-incremental PST evaluation calcs H.G.Muller Fri Jan 27, 2012 1:05 pm
                                          Re: Incremental or non-incremental PST evaluation calcs Sven Schüle Fri Jan 27, 2012 4:17 pm
                                                Re: Incremental or non-incremental PST evaluation calcs Wylie Garvin Fri Jan 27, 2012 5:49 pm
                                                Re: Incremental or non-incremental PST evaluation calcs H.G.Muller Fri Jan 27, 2012 6:45 pm
                                                      Re: Incremental or non-incremental PST evaluation calcs Kevin Hearn Fri Jan 27, 2012 7:19 pm
                                                            Re: Incremental or non-incremental PST evaluation calcs H.G.Muller Fri Jan 27, 2012 8:05 pm
                              Re: Incremental or non-incremental PST evaluation calcs Robert Hyatt Fri Jan 27, 2012 5:11 pm
                                    Re: Incremental or non-incremental PST evaluation calcs Sven Schüle Fri Jan 27, 2012 5:43 pm
                                          Re: Incremental or non-incremental PST evaluation calcs Robert Hyatt Fri Jan 27, 2012 10:37 pm
                                                Re: Incremental or non-incremental PST evaluation calcs Don Dailey Fri Jan 27, 2012 10:59 pm
                                                Re: Incremental or non-incremental PST evaluation calcs J. Wesley Cleveland Sat Jan 28, 2012 5:09 am
                                                      Re: Incremental or non-incremental PST evaluation calcs Robert Hyatt Sat Jan 28, 2012 6:09 am
                                                            Re: Incremental or non-incremental PST evaluation calcs Steven Edwards Sat Jan 28, 2012 6:55 am
                                                                  Re: Incremental or non-incremental PST evaluation calcs Evert Glebbeek Sat Jan 28, 2012 7:25 am
                                                                  Re: Incremental or non-incremental PST evaluation calcs Robert Hyatt Sat Jan 28, 2012 6:07 pm
                                                                        Re: Incremental or non-incremental PST evaluation calcs Steven Edwards Sat Jan 28, 2012 7:14 pm
                                                                        Re: Incremental or non-incremental PST evaluation calcs Aleks Peshkov Tue Jan 31, 2012 1:58 pm
                                                                              Re: Incremental or non-incremental PST evaluation calcs H.G.Muller Tue Jan 31, 2012 2:16 pm
                                                            Re: Incremental or non-incremental PST evaluation calcs H.G.Muller Sat Jan 28, 2012 9:58 am
                  Re: Incremental or non-incremental PST evaluation calcs Don Dailey Fri Jan 27, 2012 2:21 pm
                  Re: Incremental or non-incremental PST evaluation calcs Don Dailey Fri Jan 27, 2012 2:25 pm
      Re: Incremental or non-incremental PST evaluation calcs H.G.Muller Thu Jan 26, 2012 1:36 pm
            Re: Incremental or non-incremental PST evaluation calcs Mark Pearce Thu Jan 26, 2012 11:57 pm
                  Re: Incremental or non-incremental PST evaluation calcs E Diaz Fri Jan 27, 2012 7:48 am
                  Re: Incremental or non-incremental PST evaluation calcs Mark Pearce Fri Jan 27, 2012 12:26 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