Editors' picksOPEN-SOURCE SCRIPT

Daily Chess Puzzles [LuxAlgo]

Play Chess Puzzles right on your Chart!

Daily Chess Puzzles brings you a new 1-Move chess puzzle straight to your chart every day.

🔶 USAGE

snapshot

Submit your answer to see if your solution is correct! For quick access to the settings, Double-Click on the Chess board to open the settings interface.

The current active color (Who's move it is) is represented by the color of the information bar, and the corner board squares.

This game uses long algebraic notation without pieces names for submitting moves.

This method for determining moves is perfect for simplicity and clarity, and is standard for the Universal Chess Interface (UCI).

🔹 How to Notate

Long algebraic notation (without pieces name) is simple to understand. This notation does not use capture symbols or check/checkmate symbols; it uses only the squares involved in the move and any promotion occurring.

{Starting Square}{Ending Square}{Promotion Piece(if needed)}

  1. Locate the starting square and the ending square of the piece being moved, without mentioning the piece itself.
  2. Identify the column letters (a-h) and row numbers (1-8) that align with your desired move.
  3. If a pawn reaches the opposite end of the board the pawn gets promoted, add the letter representing the piece it is promoted to at the end of the move.
  4. Put it all together and you've got your notation!


Piece Notations for Pawn Promotions:
  • 'n' for Knight ('k' is reserved for the King in chess notation)
  • 'b' for Bishop
  • 'r' for Rook
  • 'q' for Queen


Normal Move Example: Moving a piece from e2 to e4 is notated as "e2e4".

Pawn Promotion Example: Promoting a pawn to a queen is notated as "e7e8q".

🔶 DETAILS

Miss a day? Yesterday's puzzle can be re-played, check the box for 'View Yesterday's Puzzle' in the settings.

This indicator makes use of Tooltips!. Hover over a square to see that square's notation.

This script makes use of 5 libraries, each storing 2 years worth of daily chess puzzles amounting to 10 years of unique daily chess puzzles.

"timenow" is used to determine which day it is, so even on a closed ticker or weekend or holiday a new chess puzzle will be displayed.

Users have the option to choose from 5 different board themes.

snapshot
boardchessforfunFUNGAMEgamifiedluxalgoPine utilitiespuzzle

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Also on:

Disclaimer