SAChess is a free and open source implementation of the Lichess API in Lua dialect - Clue. You can play it directly in the game with ImGui interface. It features board streaming, seek creating, draw handling, resigning or aborting games.
Note
You can play only rapid and classical games due lichess Board API limits.
SAChess is using some public assets for different purposes:
- sunfish.lua to generate moves without bitboards on 32-bits;
- cburnett icons;
- colors from Prettier Lichess extension for SAChess board.
- Cantarell Fonts in ImGui interface;
- assets from the GAdmin project (animations, etc.).
Thanks!
SAChess is using Lua dialect called Clue: all files from src/
directory will be
compiled to the one Lua script. You can use next command to compile all source code:
clue -t=luajit --base base/Release.lua src/
Compiled file will be in the root directory of the repository. It called as main.lua
.
To inject Lua script in game proccess we using MoonLoader and it's default library. So, you can just put compiled file in moonloader/
directory and it will work
(only if you have all libraries installed, there listed below).
Libraries that used in this project:
- mimgui
- effil
- requests
You can install all of them here. Put each library in moonloader/lib/
directory.
After you finally installed all dependencies and script - type /sachess.open
command (or press F2
) to open board.
You will be prompted to enter the Lichess API token in it.
SAChess is licensed under the terms of the GNU General Public License v3.