Vadman97 / GolangChessAI

Go Chess AI - Exploring Parallel Search Techniques with a Novel Golang Chess Engine
GNU General Public License v3.0
8 stars 3 forks source link

fix evaluation symmetry #89

Closed Vadman97 closed 5 years ago

Vadman97 commented 5 years ago

Evaluation function should take player color as a parameter from whose perspective to score. This allows implementing negamax

codecov[bot] commented 5 years ago

Codecov Report

Merging #89 into master will increase coverage by 0.54%. The diff coverage is 44.77%.

@@            Coverage Diff             @@
##           master      #89      +/-   ##
==========================================
+ Coverage   68.82%   69.37%   +0.54%     
==========================================
  Files          26       26              
  Lines        1607     1626      +19     
==========================================
+ Hits         1106     1128      +22     
+ Misses        476      474       -2     
+ Partials       25       24       -1