Skip to content

ferneyriao/DocStock

Repository files navigation

Install

$> lerna bootstrap

or

$> yarn 

Build

 $> lerna run build

The final step is to define your chess.com credentials. This is described here.

Run - WebAssembly Stockfish

My chess bot can be started as follows

$> lerna run start:bot

If you're lucky it will work and the browser will start and it shows the injected display at the bottom left corner. If you select a bot and hit Play the WebAssembly Stockfish will start playing.

Run - Docker Stockfish

It is also possible to run the Docker Stockfish engine, which plays stronger. For that to work you need to reconfigure the bot (README). This bot also uses my OpeningBook, but that will probably not work out of the box ( README). It will however work without it.

Finally you have to configure the browser bundle a bit. Open the file [./packages/bot/src/frontend/environment.ts](packages/bot/src/frontend/environment.ts). It will have these lines

        // **** BOT CONFIGURATION ****/
        // Pure browser engine
        'chess.engine.browser': 'browser.chess.engine.stockfish',
        'chess.uci': 'browser.chess.uci.browser'

        // Combi engine
        // 'chess.engine.browser': 'browser.chess.engine.stockfish',
        // 'chess.uci': 'browser.chess.uci.combi',

        // Pure backend engine
        // 'chess.uci': 'browser.chess.uci.backend

This is where I tell my DI what to inject. Comment out the 2 lines below
Pure browser engine and uncomment the single line below Pure backend engine. Thats all, lets build this and play (from the root of the project)

$> lerna run build
$> lerna run start

Thats it, good luck with that. If things don't work and require a fix or improvement, please feel free to create a Pull Request!!

Nice games

  • 4303717585
  • ...

Bookmarks

Checkout the other READMEs as well

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages