Skip to content

FeXd/puzzle-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puzzle ♟ Chess

A simple chess game where you solve puzzles.

💻 Technology

Built with basic HTML, CSS, and JavaScript.

🪶 Philosophy

I try to write code that beginners can understand. Keep everything simple. Avoid being overly complex or caring too much about optimization.

🕹️ Game Details

  • 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
  • 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

🤝 Attribution

📜 License

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