Skip to content
/ ee Public

Example using the Lichess External Engine API

License

Notifications You must be signed in to change notification settings

tors42/ee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ee

An External Engine provider for Lichess Analysis

Download

Pre-built archives can be found at releases
If you don't have a chess engine on your computer, you can download an archive with the suffix -embed.zip. They are slightly bigger and contain the Stockfish engine.
If you already have a chess engine on your computer, you can download the archive without the -embed.zip suffix, and configure the application to use your existing binary.

The archive contains a directory ee-0.0.2 which you can unpack on your computer.

To start the application, run the ee or ee.bat file in the ee-0.0.2/bin directory.

Run

  1. Click the Login button to authorize with Lichess.
    1-login 2-authorize

  2. Optionally click the Configure... button in the Engine tab to update engine settings.

  3. Open web page Lichess Analysis and click the hamburger menu in the lower right, to find the Engine Manager selection and change from Lichess to External Engine. Hint, you can change the name External Engine to something more personal in the application in the Engine tab
    3-select

Analysing moves will now use the external engine instead of the Lichess web version. 4-analyze

Libraries

Logging

There exists a logger in ee named "Main", which can be configured in ee-0.0.2/conf/logging.properties

Here's an example which writes logs for "ALL" levels to a file named ee0.log and logs for "INFO" level to console,

handlers=java.util.logging.ConsoleHandler, java.util.logging.FileHandler
.level= INFO
java.util.logging.FileHandler.pattern = ee%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.maxLocks = 100
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter

java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

java.util.logging.FileHandler.level = ALL
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter


# java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n

# com.xyz.foo.level = SEVERE
Main.level = ALL

Logging Overview - Default Configration

Develop

Build requires Java 19+

$ java build/Build.java