Custom Chess Puzzles
Only works in Chrome or Edge. Firefox has issues receiving the clipboard past
This is for creating and playing custom chess puzzles. You will need a text file with your puzzles stored in it with the following format:
One puzzle per line
Lines starting with # are comment lines and will be ignored
Lines less than 10 characters long will be ignored
winningMove is formated originSquare + destinationSquare, IE: a1b2 or h4a4
The puzzle format is:
fen | winningMove
fen | winningMove | moveList
fen | winningMove | moveList | preMessage | postMessage
example:
###################################################################################
# ## White ## King's Pawn Game
###################################################################################
# 1 ## King's Pawn Game ## 1. e4
rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2 | g1f3 | 1. e4 e5 | pre move message here | post move message here
rnbqkbnr/pp1ppppp/8/2p5/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2 | g1f3 | 1. e4 c5 | pre move message here | post move message here
rnbqkbnr/pppp1ppp/4p3/8/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2 | d2d4 | 1. e4 e6 | pre move message here | post move message here
# 2 ## King's Knight ## 1... e5 - 2. Nf3
r1bqkbnr/pppp1ppp/2n5/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 2 3 | f1b5 | 1. e4 e5 2. Nf3 Nc6 | |
rnbqkb1r/pppp1ppp/5n2/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 2 3 | d2d4 | 1. e4 e5 2. Nf3 Nf6 | |
rnbqkbnr/ppp2ppp/3p4/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 0 3 | d2d4 | 1. e4 e5 2. Nf3 d6 | |
# 3 ## Ruy Lopez ## 2... Nc6 - 3. Bb5
r1bqkb1r/pppp1ppp/2n2n2/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R w KQkq - 4 4 | d2d3 | 1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 | |
r1bqkbnr/1ppp1ppp/p1n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R w KQkq - 0 4 | b5a4 | 1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 | |
r1bqkbnr/ppp2ppp/2np4/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R w KQkq - 0 4 | d2d4 | 1. e4 e5 2. Nf3 Nc6 3. Bb5 d6 | |
r1b1kbnr/pppp1ppp/2n2q2/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R w KQkq - 4 4 | b1c3 | 1. e4 e5 2. Nf3 Nc6 3. Bb5 Qf6 | |
# 3 ## Petrov's Defense ## 2... Nf3 - 3. d4
rnbqkb1r/pppp1ppp/8/4p3/3Pn3/5N2/PPP2PPP/RNBQKB1R w KQkq - 0 4 | f1d3 | 1. e4 e5 2. Nf3 Nf6 3. d4 Nxe4 | |
rnbqkb1r/pppp1ppp/5n2/8/3pP3/5N2/PPP2PPP/RNBQKB1R w KQkq - 0 4 | e4e5 | 1. e4 e5 2. Nf3 Nf6 3. d4 exd4 | |
rnbqk2r/pppp1ppp/5n2/4p3/1b1PP3/5N2/PPP2PPP/RNBQKB1R w KQkq - 1 4 | c2c3 | 1. e4 e5 2. Nf3 Nf6 3. d4 Bb4+ | |
# 3 ## Philidor Defense ## 2... d6 - 3. d4
rnbqkbnr/ppp2ppp/3p4/8/3pP3/5N2/PPP2PPP/RNBQKB1R w KQkq - 0 4 | f3d4 | 1. e4 e5 2. Nf3 d6 3. d4 exd4 | |
rnbqkb1r/ppp2ppp/3p1n2/4p3/3PP3/5N2/PPP2PPP/RNBQKB1R w KQkq - 1 4 | d4e5 | 1. e4 e5 2. Nf3 d6 3. d4 Nf6 | |
r1bqkbnr/pppn1ppp/3p4/4p3/3PP3/5N2/PPP2PPP/RNBQKB1R w KQkq - 1 4 | f1c4 | 1. e4 e5 2. Nf3 d6 3. d4 Nd7 | |
| | | |
| | | |
| | | |
| | | |
| | | |
Leave a comment
Log in with itch.io to leave a comment.