diff options
author | Daniel Prosser <dpross1100@msn.com> | 2023-09-13 21:47:58 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-09-13 21:47:58 +0700 |
commit | 7c3efec7d8e5f995740605ae559284330ea36a11 (patch) | |
tree | 75cae9c322c6eeca8e6c9134f4821f179544c9e4 /games | |
parent | 5c1d91a9c51711e98ee376a442318e782fe4ced2 (diff) |
games/LucasChess: Updated for version R2.10.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/LucasChess/Configuration.py | 38 | ||||
-rw-r--r-- | games/LucasChess/LucasChess.SlackBuild | 4 | ||||
-rw-r--r-- | games/LucasChess/LucasChess.info | 6 |
3 files changed, 29 insertions, 19 deletions
diff --git a/games/LucasChess/Configuration.py b/games/LucasChess/Configuration.py index be6305d0955a3..fdc090c838e48 100644 --- a/games/LucasChess/Configuration.py +++ b/games/LucasChess/Configuration.py @@ -193,6 +193,9 @@ class Configuration: self.x_analyzer_mstime = 3000 self.x_analyzer_depth = 0 self.x_analyzer_priority = Priorities.priorities.low + self.x_analyzer_depth_ab = 24 + self.x_analyzer_mstime_ab = 0 + self.x_analyzer_mstime_refresh_ab = 200 self.x_maia_nodes_exponential = False @@ -256,24 +259,28 @@ class Configuration: self.x_mode_select_lc = Code.is_linux - self.dic_books = None + self._dic_books = None - def path_book(self, alias): - if self.dic_books is None: - self.dic_books = {} + @property + def dic_books(self): + if self._dic_books is None: + if self._dic_books is None: + self._dic_books = {} - def add_folder(folder): - entry: os.DirEntry - for entry in os.scandir(folder): - if entry.is_dir(): - add_folder(entry.path) - elif entry.name.endswith(".bin"): - self.dic_books[entry.name] = entry.path + def add_folder(folder): + entry: os.DirEntry + for entry in os.scandir(folder): + if entry.is_dir(): + add_folder(entry.path) + elif entry.name.endswith(".bin"): + self._dic_books[entry.name] = entry.path - add_folder(Code.path_resource("Openings")) - for engine in ("foxcub", "fox", "maia", "irina", "rodentii"): - add_folder(os.path.join(Code.folder_engines, engine)) + add_folder(Code.path_resource("Openings")) + for engine in ("foxcub", "fox", "maia", "irina", "rodentii"): + add_folder(os.path.join(Code.folder_engines, engine)) + return self._dic_books + def path_book(self, alias): return self.dic_books[alias] def read_eval(self): @@ -474,6 +481,9 @@ class Configuration: def file_learn_game(self): return "%s/LearnPGN.db" % self.carpeta_results + def file_train_books_ol(self): + return "%s/booksTrainOL.liobj" % self.carpeta_results + def file_gms(self): return "%s/gm.pke" % self.carpeta_config diff --git a/games/LucasChess/LucasChess.SlackBuild b/games/LucasChess/LucasChess.SlackBuild index 4ee884b32e64a..decdb802b70f3 100644 --- a/games/LucasChess/LucasChess.SlackBuild +++ b/games/LucasChess/LucasChess.SlackBuild @@ -25,11 +25,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=LucasChess -VERSION=${VERSION:-R2.09b} +VERSION=${VERSION:-R2.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCNAM=${SRCNAM:-LucasChessR2_09b_LINUX.sh} +SRCNAM=${SRCNAM:-LucasChessR2_10_LINUX.sh} ARCHIVELINE=680 if [ -z "$ARCH" ]; then diff --git a/games/LucasChess/LucasChess.info b/games/LucasChess/LucasChess.info index accb269f9e358..c961d04e35bdf 100644 --- a/games/LucasChess/LucasChess.info +++ b/games/LucasChess/LucasChess.info @@ -1,10 +1,10 @@ PRGNAM="LucasChess" -VERSION="R2.09b" +VERSION="R2.10" HOMEPAGE="https://lucaschess.pythonanywhere.com/" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://newcontinuum.dl.sourceforge.net/project/lucaschessr/Version_R2/LucasChessR2_09b_LINUX.sh" -MD5SUM_x86_64="989e4c7bcec915a274e5582f9c7f76d3" +DOWNLOAD_x86_64="https://newcontinuum.dl.sourceforge.net/project/lucaschessr/Version_R2/LucasChessR2_10_LINUX.sh" +MD5SUM_x86_64="05a0e94439ada7c041df719e8689ea18" REQUIRES="" MAINTAINER="Daniel Prosser" EMAIL="dpross1100@msn.com" |