Subversion Repositories Games.Chess Giants

Rev

Rev 154 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 154 Rev 169
Line 4... Line 4...
4
  Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad
4
  Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad
5
  Copyright (C) 2015-2016 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad
5
  Copyright (C) 2015-2018 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad
6
 
6
 
7
  Stockfish is free software: you can redistribute it and/or modify
7
  Stockfish is free software: you can redistribute it and/or modify
8
  it under the terms of the GNU General Public License as published by
8
  it under the terms of the GNU General Public License as published by
9
  the Free Software Foundation, either version 3 of the License, or
9
  the Free Software Foundation, either version 3 of the License, or
10
  (at your option) any later version.
10
  (at your option) any later version.
Line 54... Line 54...
54
                                        :  SCALE_FACTOR_NONE;
54
                                        :  SCALE_FACTOR_NONE;
55
    return sf != SCALE_FACTOR_NONE ? sf : ScaleFactor(factor[c]);
55
    return sf != SCALE_FACTOR_NONE ? sf : ScaleFactor(factor[c]);
56
  }
56
  }
57
 
57
 
58
  Key key;
58
  Key key;
59
  int16_t value;
-
 
60
  uint8_t factor[COLOR_NB];
-
 
61
  EndgameBase<Value>* evaluationFunction;
59
  EndgameBase<Value>* evaluationFunction;
62
  EndgameBase<ScaleFactor>* scalingFunction[COLOR_NB]; // Could be one for each
60
  EndgameBase<ScaleFactor>* scalingFunction[COLOR_NB]; // Could be one for each
63
                                                       // side (e.g. KPKP, KBPsKs)
61
                                                       // side (e.g. KPKP, KBPsKs)
-
 
62
  int16_t value;
-
 
63
  uint8_t factor[COLOR_NB];
64
  Phase gamePhase;
64
  Phase gamePhase;
65
};
65
};
66
 
66
 
67
typedef HashTable<Entry, 8192> Table;
67
typedef HashTable<Entry, 8192> Table;
68
 
68