Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loloof64/basic_chess_endgames
Generate a chess position from your criterias and play it against your device.
https://github.com/loloof64/basic_chess_endgames
android chess endgame exercice linux windows
Last synced: 19 days ago
JSON representation
Generate a chess position from your criterias and play it against your device.
- Host: GitHub
- URL: https://github.com/loloof64/basic_chess_endgames
- Owner: loloof64
- License: mit
- Created: 2023-07-12T13:51:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T11:14:04.000Z (24 days ago)
- Last Synced: 2024-11-28T12:22:52.554Z (24 days ago)
- Topics: android, chess, endgame, exercice, linux, windows
- Language: Dart
- Homepage:
- Size: 3.74 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: license.txt
Awesome Lists containing this project
README
# Basic chess endgames
Generate a chess position from your criterias and play it against your device.
# Releases
* Windows release is built under windows 11, and so may not be retro-compatible with older Windows versions,
* Linux release is built under Ubuntu 20.04, and so may not be retro-compatible with linux older than 2020.## Usage
### Examples
You can generate a position from an example script. In the list, there also icons in order to know if we can hope for a win or for a draw.
But you can clone an example and adapt it for your own needs. And you can also see the code of an example.
### Custom scripts
You can also define your custom scripts : each section is written in a subset of the Lua language. There's also a manual in the script editor page.
You can also see the predefined variables of each script section, as well as their types. And you can insert them in your code by selecting them.
### Game
Once the position is generated, you can play it against the computer, and abort it at any time.
Whenever game is finished, you can see the history of moves.
## Developpers
### Antlr4
If you want to generate Antlr4 base from the Lua.g4, simply go into the lib/antlr4 folder, and run :
```
antlr4 -o generated -no-listener -visitor -Dlanguage=Dart Lua.g4```
And in LuaLexer.dart file, make LuaLexer extend LuaLexerBase instead of Lexer :
```dart
class LuaLexer extends LuaLexerBase {
```### Translations
In order to update translations, run
```
dart run slang
```