Skip to content

Rggam/offline-chess-puzzles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

offline-chess-puzzles

Tool to view and solve puzzles from the lichess puzzle database.

It's a very simple tool for those who want to practice offline, it has filters by puzzle rating and theme. It might also be helpful to teach the tactical motifs to students, since it's easy to select easy puzzles from a theme.

I need to thank lichess for creating the puzzle database (https://database.lichess.org/#puzzles)
and the project "chess-engine" (https://github.com/adam-mcdaniel/chess-engine/) which I used as a starting point for the GUI here.

Usage:

If you will compile the sources yourself, you also need to download the file "lichess_db_puzzle.csv" (from the lichess link above) to the puzzles directory.
Compilation is done with the usual "cargo build" in the project's root.

To play you just adjust the search to your needs, press "search" and a puzzle will be loaded, when you get it right the next puzzle will be immediatly displayed.
If the move is a promotion you need to select the piece to promote to in the bottom of the screen before moving the pawn.

The search is a bit slow but I think it's important to use the cvs directly so users can easily replace the file if needed.

The analysis mode doesn't have a back button but you can just click on "Analysis" again to go back to the position you had in the puzzle.

License:

  • The code is distributed under the MIT License. See LICENSE for more information.

Assets authors / licenses:

  • The piece set "cburnett" is a work of Colin M.L. Burnett and used under the CC-BY-SA 3.0 unported license (more info on the license.txt file in that directory).
  • The "california" piece set is a work of Jerry S. licensed under CC BY-NC-SA 4.0 (https://sites.google.com/view/jerrychess/home)
  • The piece sets "Cardinal", "Dubrovny", "Gioco", "Icpieces", "Maestro", "Staunty" and "Tatiana" are work of "sadsnake1", licensed under CC BY-NC-SA 4.0. And obtained from the lila (lichess) repository.

About

Tool to view and solve puzzles from the lichess puzzle database

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Rust 77.1%
  • Fluent 22.9%