A simple chess game where you solve puzzles.
Built with basic HTML, CSS, and JavaScript.
I try to write code that beginners can understand. Keep everything simple. Avoid being overly complex or caring too much about optimization.
- players start at a rating of 400 when starting a new game
- solving or failing a puzzle will change the player rating
- up to a maximum of +/- 32, based on the puzzle difficulty
- player rating is stored via
localStorage
- puzzles are selected randomly from within +/- 100 the player rating
- in order to support offline play, approximately ~2 MB of puzzles
- stored in
/puzzles/offline/puzzles.csv
- range in difficulty from 400 to 3166
- puzzles were selected from Lichess Open Database
- stored in
- in a future update, support for the Lichess.org API is planned
- this will enable use of the entire puzzle database
- pawn promotion is supported
- but the piece will be automatically chosen based on the puzzle solution
- the current player rating is visible in the ☰ menu
- double clicking the Puzzle ♟ Chess title will reveal a debug information
- Pieces by Cburnett, CC BY-SA 3.0 via Wikimedia Commons
- Puzzles via Lichess Open Database, Creative Commons CC0
- Uses fen-validator, GNU GPL v3.0 by Jayasurian Makkoth
- Uses JS-CHESS-ENGINE, MIT by Josef Jadrny
Copyright (c) 2024 Arlin Schaffel
Licensed under the GNU GPL v3.0 License, available here: https://github.com/FeXd/puzzle-chess/blob/main/LICENSE.md