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 

Learning piece-square table
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Jonathan Rosenthal



Joined: 22 Jan 2015
Posts: 113
Location: Zurich, Switzerland

PostPost subject: Re: Learning piece-square table    Posted: Tue Feb 13, 2018 3:01 pm Reply to topic Reply with quote

I am not sure what the current standard way to approach this is. In Winter I only use PSTs for knight and king position evaluations. I assume the board is completely symmetric with respect to rotation and reflection, which is not actually the case due to pawns as well as castling rules. Under this assumption you can take a look at the a1-d4 diagonal as well as the squares below that. Every other square on the board can be reached by some combination of rotations and reflections from these squares. This gives just 10 values per piece so you should be working with the much more manageable number of 50 for non pawn pieces.

In Winter I have the following array which saves the transformation:

Code:

const int kPSTindex[64] = {
    0, 1, 2, 3, 3, 2, 1, 0,
    1, 4, 5, 6, 6, 5, 4, 1,
    2, 5, 7, 8, 8, 7, 5, 2,
    3, 6, 8, 9, 9, 8, 6, 3,
    3, 6, 8, 9, 9, 8, 6, 3,
    2, 5, 7, 8, 8, 7, 5, 2,
    1, 4, 5, 6, 6, 5, 4, 1,
    0, 1, 2, 3, 3, 2, 1, 0
};


For pawns you could have a bonus for each file (so 4 values utilizing symmetry) and for how advanced the pawn is (another 6 values) which should also give you 10 parameters for pawns. In total this would give you 60 parameters for PSTs of the pieces and pawns.

In Winter I don't do that for pawns at all, instead I just give pawns a constant base value (not dependent on where they are) and passed pawns a bonus based on how far advanced they are.
Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
Learning piece-square table Mathieu Pagé Tue Feb 13, 2018 12:49 pm
      Re: Learning piece-square table Eugene Kotlov Tue Feb 13, 2018 1:49 pm
            Re: Learning piece-square table Mathieu Pagé Wed Feb 14, 2018 2:06 am
      Re: Learning piece-square table Jonathan Rosenthal Tue Feb 13, 2018 3:01 pm
            Re: Learning piece-square table Eugene Kotlov Tue Feb 13, 2018 5:36 pm
                  Re: Learning piece-square table Dann Corbit Tue Feb 13, 2018 7:40 pm
                        Re: Learning piece-square table Álvaro Begué Tue Feb 13, 2018 7:48 pm
                              Re: Learning piece-square table Dann Corbit Tue Feb 13, 2018 7:53 pm
                              Re: Learning piece-square table Robert Pope Tue Feb 13, 2018 7:54 pm
                                    Re: Learning piece-square table Álvaro Begué Tue Feb 13, 2018 7:58 pm
                        Re: Learning piece-square table Jonathan Rosenthal Wed Feb 14, 2018 11:43 am
            Re: Learning piece-square table Mathieu Pagé Wed Feb 14, 2018 2:15 am
                  Re: Learning piece-square table Evert Glebbeek Wed Feb 14, 2018 6:10 am
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