Skip to content

Commit a530db5

Browse files
committed
Use Stockfish 13
1 parent cc882a1 commit a530db5

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Discuss Hyper Bot on Discord https://discord.gg/8m3Muay .
5252

5353
Post issues on GitHub https://github.com/hyperchessbot/hyperbot/issues .
5454
## Config vars
55+
**USE_STOCKFISH_13** : set it to 'true' to use Stockfish 13 ( Heroku / Linux only )
56+
5557
**KEEP_ALIVE_URL** : set this to the full link of your bot home page ( https://[yourappname].herokuapp.com , where change [yourappname] to your Heroku app name ) if you want your bot to be kept alive from early morning till late night Heroku server time, keeping alive a free Heroku bot for 24/7 is not possible, because a free Heroku account has a monthly quota of 550 hours
5658

5759
**ALWAYS_ON** : requires paid Heroku account, set it to 'true' to keep the bot alive 24/7, you have to set KEEP_ALIVE_URL to your bot's full home page link for ALWAYS_ON to work ( see also the explanation of KEEP_ALIVE_URL config var )

server.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ const { isEnvTrue, formatTime, formatName, SECOND, MINUTE } = require('@easyches
5555

5656
let envKeys = []
5757

58+
const useStockfish13 = isEnvTrue('USE_STOCKFISH_13')
59+
envKeys.push('USE_STOCKFISH_13')
5860
const appName = process.env.APP_NAME || "hyperchessbot"
5961
envKeys.push('APP_NAME')
6062
const generalTimeout = parseInt(process.env.GENERAL_TIMEOUT || "15")
@@ -233,7 +235,13 @@ const { UciEngine, setLogEngine, AnalyzeJob } = require('@easychessanimations/uc
233235

234236
const LC0_EXE = (require('os').platform() == "win32") ? "lc0goorm/lc0.exe" : "lc0goorm/lc0"
235237

236-
const stockfishPath = useScalachess ? 'stockfish12m' : 'stockfish12'
238+
let stockfishPath = useScalachess ? 'stockfish12m' : 'stockfish12'
239+
240+
if(useStockfish13){
241+
stockfishPath = useScalachess ? 'stockfish13m' : 'stockfish13'
242+
243+
console.log(`using Stockfish 13 ( ${stockfishPath} )`)
244+
}
237245

238246
const enginePath = useLc0 ? LC0_EXE : stockfishPath
239247

stockfish13

21.3 MB
Binary file not shown.

stockfish13m

20.7 MB
Binary file not shown.

0 commit comments

Comments
 (0)