Skip to content

Commit

Permalink
Raise version to 0.7.0, formatting + info
Browse files Browse the repository at this point in the history
  • Loading branch information
nionita committed May 1, 2021
1 parent ad9fe00 commit 28fe1a1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Barbarossa.cabal
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Name: Barbarossa
Version: 0.6.0
Version: 0.7.0
Synopsis: UCI chess engine written in Haskell
License: BSD3
License-file: LICENSE
Author: Nicu Ionita
Maintainer: [email protected]
Copyright: Nicu Ionita 2013 - 2019
Copyright: Nicu Ionita 2013 - 2021
Category: Game
Build-type: Simple
Cabal-version: >=1.8
Expand Down
17 changes: 10 additions & 7 deletions Main/Barbarossa.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import Eval.FileParams (makeEvalState)
progName, progVersion, progVerSuff, progAuthor :: String
progName = "Barbarossa"
progAuthor = "Nicu Ionita"
progVersion = "0.6.0"
progVerSuff = "i2103"
progVersion = "0.7.0"
progVerSuff = "base070"

data Options = Options {
optConfFile :: Maybe String, -- config file
Expand All @@ -48,11 +48,14 @@ data Options = Options {
optAFenFile :: Maybe FilePath -- annotated fen file for self analysis
}

logOptDefault :: LogLevel
logOptDefault = if length progVerSuff == 0 then LogNever else LogInfo

defaultOptions :: Options
defaultOptions = Options {
optConfFile = Nothing,
optParams = [],
optLogging = LogInfo,
optLogging = logOptDefault,
optAFenFile = Nothing
}

Expand All @@ -78,10 +81,10 @@ addAFile fi opt = opt { optAFenFile = Just fi }

options :: [OptDescr (Options -> Options)]
options = [
Option "c" ["config"] (ReqArg setConfFile "STRING") "Configuration file",
Option "l" ["loglev"] (ReqArg setLogging "STRING") "Logging level from 0 (debug) to 5 (never)",
Option "p" ["param"] (ReqArg addParam "STRING") "Eval/search/time parameters: name=value,...",
Option "a" ["analyse"] (ReqArg addAFile "STRING") "Analysis file"
Option "c" ["config"] (ReqArg setConfFile "STRING") "Configuration file",
Option "l" ["loglev"] (ReqArg setLogging "STRING") "Logging level from 0 (debug) to 5 (never)",
Option "p" ["param"] (ReqArg addParam "STRING") "Eval/search/time parameters: name=value,...",
Option "a" ["analyse"] (ReqArg addAFile "STRING") "Analysis file"
]

theOptions :: IO (Options, [String])
Expand Down
2 changes: 1 addition & 1 deletion Search/Albeta.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ useAspirWin = False
-- Some fix search parameter
scoreGrain, depthForCM, minPvDepth :: Int
scoreGrain = 4 -- score granularity
depthForCM = 7 -- from this depth inform current move
depthForCM = 8 -- from this depth inform current move
minPvDepth = 2 -- from this depth we use alpha beta search
useTTinPv :: Bool
useTTinPv = False -- retrieve from TT in PV?
Expand Down

0 comments on commit 28fe1a1

Please sign in to comment.