Chess-engine
A fully compliant, playable chess engine written in Lua and rendered with the Love2D game framework forked from https://github.com/Azzla/chess-engine. Features a multi-threaded AI opponent with alpha-beta + quiescence search algorithms.
Completed Goals
- Bug-free legal move generation: Passes all Perfts up to a depth of 5-ply from this testing suite.
- Optimized move generation: Various speed increases have been achieved via table-lookups, init-time move info storage, array indexing over looping, removing table.insert, etc. More optimization is always possible but its good enough for the time being.
- Playable AI opponent: Opponent can find good moves in most positions and generally avoids bad moves. I've noticed a bug where the search thread hangs and it never returns the best move, but it seems to occur rarely.
I'm not the original developer, I forked the project and did a few small tweaks like zoom out the screen and tweaking the screen resolution to make it fit on mobiles.
I may add some more mobile features in the future.
This is my second chess project forked, the other one can be found here: https://openrepos.net/content/glitchapp/love-chessboard
Difference between the two chess games:
Chess-engine:
- Features A.I. oponent (you can only play against cpu)
- Clock
- Smooth animations
love-chessboard:
- No A.I. opponent (you can only play against another human player)
- 4 sets available: "fritz", "sharm", "smirf" and "warlord"
- Portrait and landscape mode
Choose whatever chess you prefer and enjoy!
v0.2 adds:
- New set of pieces: "sharm"
- Normal maps and global illumination
This new version pushes the gpu and may not perform well on old devices, if you experience bad performance please use v0.1
v0.3 adds: Deprecated lua functions updated with their newer counterparts.
This build works on sailfish os 5.0 (tampella). It problably won't work on older sailfish versions: some of the new lua functions do not work on older lua, if the game crashes on older sailfish please use version 0.2 instead.
Keywords:
Attachment | Size | Date |
---|---|---|
![]() | 2.14 MB | 29/09/2024 - 14:16 |
![]() | 11.34 MB | 11/11/2024 - 18:23 |
![]() | 14.84 MB | 28/02/2025 - 15:09 |
v0.3 adds: Deprecated lua functions updated with their newer counterparts.
This build works on sailfish os 5.0 (tampella). It problably won't work on older sailfish versions: some of the new lua functions do not work on older lua, if the game crashes on older sailfish please use version 0.2 instead.
Laatste reacties