Skip to content

Commit

Permalink
Redefine center for eval, small param changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nionita committed Aug 14, 2016
1 parent f669098 commit 3c75d5b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist
*.ods
*.swp
*.log
.stack-work
2 changes: 1 addition & 1 deletion Eval/Eval.hs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ centerDiff p ew mide = mad (mad (mad (mad (mad (mad mide (ewCenterPAtts ew) pd)
!mka = popCount $ myKAttacs p .&. center
!yka = popCount $ yoKAttacs p .&. center
!kd = mka - yka
center = 0x0000001818000000
center = 0x0000003C3C000000

-------- Attacks to adverse squares ----------
data Advers = Advers
Expand Down
2 changes: 1 addition & 1 deletion Main/Barbarossa.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ progName, progVersion, progVerSuff, progAuthor :: String
progName = "Barbarossa"
progAuthor = "Nicu Ionita"
progVersion = "0.4.0"
progVerSuff = "kop1"
progVerSuff = "exce"

data Options = Options {
optConfFile :: Maybe String, -- config file
Expand Down
10 changes: 5 additions & 5 deletions Struct/Status.hs
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ instance CollectParams EvalWeights where
ewMobilityRook = tme 28 26,
ewMobilityQueen = tme 4 6,
ewCenterPAtts = tme 84 68,
ewCenterNAtts = tme 52 48,
ewCenterBAtts = tme 60 41,
ewCenterRAtts = tme 11 36,
ewCenterQAtts = tme 4 62,
ewCenterKAtts = tme 0 56,
ewCenterNAtts = tme 49 45,
ewCenterBAtts = tme 57 39,
ewCenterRAtts = tme 10 34,
ewCenterQAtts = tme 4 59,
ewCenterKAtts = tme 0 53,
ewAdvAtts = tme 3 16,
ewIsolPawns = tme (-42) (-122),
ewIsolPassed = tme (-60) (-160),
Expand Down

0 comments on commit 3c75d5b

Please sign in to comment.