Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stylextv/lila
📚♟️ UCI chess engine.
https://github.com/stylextv/lila
ai brute-force chess chess-ai chess-ai-engine chess-engine java minimax minimax-alpha-beta-pruning uci uci-engine
Last synced: 25 days ago
JSON representation
📚♟️ UCI chess engine.
- Host: GitHub
- URL: https://github.com/stylextv/lila
- Owner: stylextv
- License: mit
- Created: 2021-04-09T15:13:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-28T19:33:53.000Z (over 3 years ago)
- Last Synced: 2024-10-14T06:36:00.470Z (2 months ago)
- Topics: ai, brute-force, chess, chess-ai, chess-ai-engine, chess-engine, java, minimax, minimax-alpha-beta-pruning, uci, uci-engine
- Language: Java
- Homepage:
- Size: 839 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
♟️ Source code of the Lila Chess engine, made with ❤️ in Java.
## Overview
Lila is a free, open source chess engine written in Java.Furthermore, this project is a UCI chess engine, which means that it does not contain an interface/gui, but is purely text-based.
You can either run it from the command prompt via `java -jar lila.jar` or use a chess GUI (e.g. [Cute Chess](https://github.com/cutechess/cutechess)) in order to use it more conveniently.> A compiled binary can be found [here](https://github.com/StylexTV/Lila/raw/main/bins/lila_3.jar).
## Features
Coming soon...## Options
The [Universal Chess Interface (UCI)](http://wbec-ridderkerk.nl/html/UCIProtocol.html) is a standard protocol used to communicate between chess programs, and is the recommended way to do so for typical graphical user interfaces (GUI) or chess tools.The following UCI options, which can typically be set via a GUI, are available in Lila:
* #### Threads
The number of CPU threads used for searching a position. For best performance, set
this equal to the number of CPU cores available.* #### Hash
The size of the hash table in MB.## Commands
Lila supports most of the regular commands included in the [UCI protocol](http://wbec-ridderkerk.nl/html/UCIProtocol.html), but also has some special commands.Name | Arguments | Description
--- | --- | ---
uci | - | The UCI startup command.
isready | - | Used to synchronize the chess engine with the GUI.
setoption | name [value] | Sets an option to a specific value. For buttons, simply omit the *value* argument.
ucinewgame | - | Tells the engine that a new game has started.
position | [fen | startpos] moves | Sets up a new position.
go | depth
movetime
wtime
btime
movestogo
winc
binc | Starts a new search with the specified constraints.
stop | - | Ends the current search as soon as possible.
d | - | Prints the current position (used for debugging).
eval | - | Shows the evaluation of the current position (used for debugging).
perft | [depth] | Executes a [perft](https://www.chessprogramming.org/Perft) call to the specified depth.
⚠️ Warning: Starting an unrestricted call locks the program at the moment.
quit | - | Stops the program and eliminates all searches that are still running.## Strength
The following table shows the wins, losses, draws and the Elo gain compared to the respective previous version.Version | Wins | Losses | Draws | Elo gain | Production ready
--- | --- | --- | --- | --- | ---
3.0.1 | 92 | 0 | 8 | +234 | ❌## Project Layout
Here you can see the current structure of the project.```bash
├─ 📂 bins/ # ✨ Binaries
├─ 📂 src/ # 🌟 Source Files
│ └─ 📂 de/lila/ # ✉️ Source Code
└─ 📃 CODE_OF_CONDUCT.md # 📌 Code of Conduct
└─ 📃 LICENSE # ⚖️ MIT License
└─ 📃 README.md # 📖 Read Me!
```