pwenker commited on
Commit
b660312
Β·
1 Parent(s): c4cacdf

chore: fix links

Browse files
README.md CHANGED
@@ -28,7 +28,7 @@ Chessli2 is here to support your journey to becoming a chess master. Dive in and
28
 
29
  ### 🌟 Best 1000 Puzzles for each Theme 🧩
30
 
31
- πŸ“š [Overview and links](https://github.com/pwenker/chessli2/docs/best_1000_puzzles_by_theme.md) πŸ”—
32
 
33
  ## Local Deployment 🏠
34
 
 
28
 
29
  ### 🌟 Best 1000 Puzzles for each Theme 🧩
30
 
31
+ πŸ“š [Overview and links](https://github.com/pwenker/chessli2/blob/main/docs/best_1000_puzzles_by_theme.md) πŸ”—
32
 
33
  ## Local Deployment 🏠
34
 
docs/best_1000_puzzles_by_theme.md CHANGED
@@ -1,62 +1,62 @@
1
- | Name | Description | Link to 1000 best puzzles |
2
  |-------------------------|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|
3
- | Advanced pawn | One of your pawns is deep into the opponent position, maybe threatening to promote. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/advancedPawn.csv) |
4
- | Advantage | Seize your chance to get a decisive advantage. (200cp ≀ eval ≀ 600cp) | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/advantage.csv) |
5
- | Anastasia's mate | A knight and rook or queen team up to trap the opposing king between the side of the board and a friendly piece. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/anastasiaMate.csv) |
6
- | Arabian mate | A knight and a rook team up to trap the opposing king on a corner of the board. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/arabianMate.csv) |
7
- | Attacking f2 or f7 | An attack focusing on the f2 or f7 pawn, such as in the fried liver opening. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/attackingF2F7.csv) |
8
- | Attraction | An exchange or sacrifice encouraging or forcing an opponent piece to a square that allows a follow-up tactic. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/attraction.csv) |
9
- | Back rank mate | Checkmate the king on the home rank, when it is trapped there by its own pieces. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/backRankMate.csv) |
10
- | Bishop endgame | An endgame with only bishops and pawns. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/bishopEndgame.csv) |
11
- | Boden's mate | Two attacking bishops on criss-crossing diagonals deliver mate to a king obstructed by friendly pieces. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/bodenMate.csv) |
12
- | Castling | Bring the king to safety, and deploy the rook for attack. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/castling.csv) |
13
- | Capture the defender | Removing a piece that is critical to defence of another piece, allowing the now undefended piece to be captured on a following move. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/capturingDefender.csv) |
14
- | Crushing | Spot the opponent blunder to obtain a crushing advantage. (eval β‰₯ 600cp) | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/crushing.csv) |
15
- | Double bishop mate | Two attacking bishops on adjacent diagonals deliver mate to a king obstructed by friendly pieces. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/doubleBishopMate.csv) |
16
- | Dovetail mate | A queen delivers mate to an adjacent king, whose only two escape squares are obstructed by friendly pieces. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/dovetailMate.csv) |
17
- | Equality | Come back from a losing position, and secure a draw or a balanced position. (eval ≀ 200cp) | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/equality.csv) |
18
- | Kingside attack | An attack of the opponent's king, after they castled on the king side. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/kingsideAttack.csv) |
19
- | Clearance | A move, often with tempo, that clears a square, file or diagonal for a follow-up tactical idea. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/clearance.csv) |
20
- | Defensive move | A precise move or sequence of moves that is needed to avoid losing material or another advantage. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/defensiveMove.csv) |
21
- | Deflection | A move that distracts an opponent piece from another duty that it performs, such as guarding a key square. Sometimes also called "overloading". | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/deflection.csv) |
22
- | Discovered attack | Moving a piece (such as a knight), that previously blocked an attack by a long range piece (such as a rook), out of the way of that piece. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/discoveredAttack.csv) |
23
- | Double check | Checking with two pieces at once, as a result of a discovered attack where both the moving piece and the unveiled piece attack the opponent's king. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/doubleCheck.csv) |
24
- | Endgame | A tactic during the last phase of the game. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/endgame.csv) |
25
- | En passant | A tactic involving the en passant rule, where a pawn can capture an opponent pawn that has bypassed it using its initial two-square move. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/enPassant.csv) |
26
- | Exposed king | A tactic involving a king with few defenders around it, often leading to checkmate. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/exposedKing.csv) |
27
- | Fork | A move where the moved piece attacks two opponent pieces at once. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/fork.csv) |
28
- | Hanging piece | A tactic involving an opponent piece being undefended or insufficiently defended and free to capture. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/hangingPiece.csv) |
29
- | Hook mate | Checkmate with a rook, knight, and pawn along with one enemy pawn to limit the enemy king's escape. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/hookMate.csv) |
30
- | Interference | Moving a piece between two opponent pieces to leave one or both opponent pieces undefended, such as a knight on a defended square between two rooks. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/interference.csv) |
31
- | Intermezzo | Instead of playing the expected move, first interpose another move posing an immediate threat that the opponent must answer. Also known as "Zwischenzug" or "In between". | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/intermezzo.csv) |
32
- | Knight endgame | An endgame with only knights and pawns. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/knightEndgame.csv) |
33
- | Long | Three moves to win. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/long.csv) |
34
- | Master games | Puzzles from games played by titled players. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/master.csv) |
35
- | Master vs Master games | Puzzles from games between two titled players. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/masterVsMaster.csv) |
36
- | Checkmate | Win the game with style. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/mate.csv) |
37
- | Mate in 1 | Deliver checkmate in one move. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/mateIn1.csv) |
38
- | Mate in 2 | Deliver checkmate in two moves. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/mateIn2.csv) |
39
- | Mate in 3 | Deliver checkmate in three moves. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/mateIn3.csv) |
40
- | Mate in 4 | Deliver checkmate in four moves. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/mateIn4.csv) |
41
- | Mate in 5 or more | Figure out a long mating sequence. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/mateIn5.csv) |
42
- | Middlegame | A tactic during the second phase of the game. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/middlegame.csv) |
43
- | One-move puzzle | A puzzle that is only one move long. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/oneMove.csv) |
44
- | Opening | A tactic during the first phase of the game. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/opening.csv) |
45
- | Pawn endgame | An endgame with only pawns. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/pawnEndgame.csv) |
46
- | Pin | A tactic involving pins, where a piece is unable to move without revealing an attack on a higher value piece. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/pin.csv) |
47
- | Promotion | Promote one of your pawn to a queen or minor piece. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/promotion.csv) |
48
- | Queen endgame | An endgame with only queens and pawns. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/queenEndgame.csv) |
49
- | Queen and Rook | An endgame with only queens, rooks and pawns. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/queenRookEndgame.csv) |
50
- | Queenside attack | An attack of the opponent's king, after they castled on the queen side. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/queensideAttack.csv) |
51
- | Quiet move | A move that does neither make a check or capture, nor an immediate threat to capture, but does prepare a more hidden unavoidable threat for a later move. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/quietMove.csv) |
52
- | Rook endgame | An endgame with only rooks and pawns. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/rookEndgame.csv) |
53
- | Sacrifice | A tactic involving giving up material in the short-term, to gain an advantage again after a forced sequence of moves. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/sacrifice.csv) |
54
- | Short | Two moves to win. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/short.csv) |
55
- | Skewer | A motif involving a high value piece being attacked, moving out the way, and allowing a lower value piece behind it to be captured or attacked, the inverse of a pin. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/skewer.csv) |
56
- | Smothered mate | A checkmate delivered by a knight in which the mated king is unable to move because it is surrounded (or smothered) by its own pieces. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/smotheredMate.csv) |
57
- | Super GM games | Puzzles from games played by the best players in the world. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/superGM.csv) |
58
- | Trapped piece | A piece is unable to escape capture as it has limited moves. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/trappedPiece.csv) |
59
- | Underpromotion | Promotion to a knight, bishop, or rook. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/underPromotion.csv) |
60
- | Very long | Four moves or more to win. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/veryLong.csv) |
61
- | X-Ray attack | A piece attacks or defends a square, through an enemy piece. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/xRayAttack.csv) |
62
- | Zugzwang | The opponent is limited in the moves they can make, and all moves worsen their position. | [Link to 1000 best puzzles](https://github.com/pwenker/chessli2/puzzles/zugzwang.csv) |
 
1
+ | Name | Description | Link |
2
  |-------------------------|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|
3
+ | Advanced pawn | One of your pawns is deep into the opponent position, maybe threatening to promote. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/advancedPawn.csv) |
4
+ | Advantage | Seize your chance to get a decisive advantage. (200cp ≀ eval ≀ 600cp) | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/advantage.csv) |
5
+ | Anastasia's mate | A knight and rook or queen team up to trap the opposing king between the side of the board and a friendly piece. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/anastasiaMate.csv) |
6
+ | Arabian mate | A knight and a rook team up to trap the opposing king on a corner of the board. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/arabianMate.csv) |
7
+ | Attacking f2 or f7 | An attack focusing on the f2 or f7 pawn, such as in the fried liver opening. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/attackingF2F7.csv) |
8
+ | Attraction | An exchange or sacrifice encouraging or forcing an opponent piece to a square that allows a follow-up tactic. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/attraction.csv) |
9
+ | Back rank mate | Checkmate the king on the home rank, when it is trapped there by its own pieces. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/backRankMate.csv) |
10
+ | Bishop endgame | An endgame with only bishops and pawns. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/bishopEndgame.csv) |
11
+ | Boden's mate | Two attacking bishops on criss-crossing diagonals deliver mate to a king obstructed by friendly pieces. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/bodenMate.csv) |
12
+ | Castling | Bring the king to safety, and deploy the rook for attack. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/castling.csv) |
13
+ | Capture the defender | Removing a piece that is critical to defence of another piece, allowing the now undefended piece to be captured on a following move. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/capturingDefender.csv) |
14
+ | Crushing | Spot the opponent blunder to obtain a crushing advantage. (eval β‰₯ 600cp) | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/crushing.csv) |
15
+ | Double bishop mate | Two attacking bishops on adjacent diagonals deliver mate to a king obstructed by friendly pieces. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/doubleBishopMate.csv) |
16
+ | Dovetail mate | A queen delivers mate to an adjacent king, whose only two escape squares are obstructed by friendly pieces. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/dovetailMate.csv) |
17
+ | Equality | Come back from a losing position, and secure a draw or a balanced position. (eval ≀ 200cp) | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/equality.csv) |
18
+ | Kingside attack | An attack of the opponent's king, after they castled on the king side. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/kingsideAttack.csv) |
19
+ | Clearance | A move, often with tempo, that clears a square, file or diagonal for a follow-up tactical idea. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/clearance.csv) |
20
+ | Defensive move | A precise move or sequence of moves that is needed to avoid losing material or another advantage. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/defensiveMove.csv) |
21
+ | Deflection | A move that distracts an opponent piece from another duty that it performs, such as guarding a key square. Sometimes also called "overloading". | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/deflection.csv) |
22
+ | Discovered attack | Moving a piece (such as a knight), that previously blocked an attack by a long range piece (such as a rook), out of the way of that piece. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/discoveredAttack.csv) |
23
+ | Double check | Checking with two pieces at once, as a result of a discovered attack where both the moving piece and the unveiled piece attack the opponent's king. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/doubleCheck.csv) |
24
+ | Endgame | A tactic during the last phase of the game. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/endgame.csv) |
25
+ | En passant | A tactic involving the en passant rule, where a pawn can capture an opponent pawn that has bypassed it using its initial two-square move. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/enPassant.csv) |
26
+ | Exposed king | A tactic involving a king with few defenders around it, often leading to checkmate. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/exposedKing.csv) |
27
+ | Fork | A move where the moved piece attacks two opponent pieces at once. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/fork.csv) |
28
+ | Hanging piece | A tactic involving an opponent piece being undefended or insufficiently defended and free to capture. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/hangingPiece.csv) |
29
+ | Hook mate | Checkmate with a rook, knight, and pawn along with one enemy pawn to limit the enemy king's escape. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/hookMate.csv) |
30
+ | Interference | Moving a piece between two opponent pieces to leave one or both opponent pieces undefended, such as a knight on a defended square between two rooks. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/interference.csv) |
31
+ | Intermezzo | Instead of playing the expected move, first interpose another move posing an immediate threat that the opponent must answer. Also known as "Zwischenzug" or "In between". | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/intermezzo.csv) |
32
+ | Knight endgame | An endgame with only knights and pawns. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/knightEndgame.csv) |
33
+ | Long | Three moves to win. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/long.csv) |
34
+ | Master games | Puzzles from games played by titled players. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/master.csv) |
35
+ | Master vs Master games | Puzzles from games between two titled players. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/masterVsMaster.csv) |
36
+ | Checkmate | Win the game with style. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/mate.csv) |
37
+ | Mate in 1 | Deliver checkmate in one move. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/mateIn1.csv) |
38
+ | Mate in 2 | Deliver checkmate in two moves. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/mateIn2.csv) |
39
+ | Mate in 3 | Deliver checkmate in three moves. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/mateIn3.csv) |
40
+ | Mate in 4 | Deliver checkmate in four moves. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/mateIn4.csv) |
41
+ | Mate in 5 or more | Figure out a long mating sequence. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/mateIn5.csv) |
42
+ | Middlegame | A tactic during the second phase of the game. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/middlegame.csv) |
43
+ | One-move puzzle | A puzzle that is only one move long. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/oneMove.csv) |
44
+ | Opening | A tactic during the first phase of the game. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/opening.csv) |
45
+ | Pawn endgame | An endgame with only pawns. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/pawnEndgame.csv) |
46
+ | Pin | A tactic involving pins, where a piece is unable to move without revealing an attack on a higher value piece. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/pin.csv) |
47
+ | Promotion | Promote one of your pawn to a queen or minor piece. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/promotion.csv) |
48
+ | Queen endgame | An endgame with only queens and pawns. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/queenEndgame.csv) |
49
+ | Queen and Rook | An endgame with only queens, rooks and pawns. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/queenRookEndgame.csv) |
50
+ | Queenside attack | An attack of the opponent's king, after they castled on the queen side. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/queensideAttack.csv) |
51
+ | Quiet move | A move that does neither make a check or capture, nor an immediate threat to capture, but does prepare a more hidden unavoidable threat for a later move. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/quietMove.csv) |
52
+ | Rook endgame | An endgame with only rooks and pawns. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/rookEndgame.csv) |
53
+ | Sacrifice | A tactic involving giving up material in the short-term, to gain an advantage again after a forced sequence of moves. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/sacrifice.csv) |
54
+ | Short | Two moves to win. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/short.csv) |
55
+ | Skewer | A motif involving a high value piece being attacked, moving out the way, and allowing a lower value piece behind it to be captured or attacked, the inverse of a pin. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/skewer.csv) |
56
+ | Smothered mate | A checkmate delivered by a knight in which the mated king is unable to move because it is surrounded (or smothered) by its own pieces. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/smotheredMate.csv) |
57
+ | Super GM games | Puzzles from games played by the best players in the world. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/superGM.csv) |
58
+ | Trapped piece | A piece is unable to escape capture as it has limited moves. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/trappedPiece.csv) |
59
+ | Underpromotion | Promotion to a knight, bishop, or rook. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/underPromotion.csv) |
60
+ | Very long | Four moves or more to win. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/veryLong.csv) |
61
+ | X-Ray attack | A piece attacks or defends a square, through an enemy piece. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/xRayAttack.csv) |
62
+ | Zugzwang | The opponent is limited in the moves they can make, and all moves worsen their position. | [Link](https://github.com/pwenker/chessli2/blob/main/puzzles/zugzwang.csv) |
puzzles/count_fen.sh DELETED
@@ -1,14 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Directory to search files in
4
- DIRECTORY="."
5
-
6
- # Iterate through all files in the directory
7
- for file in "$DIRECTORY"/*; do
8
- if [ -f "$file" ]; then
9
- # Count the number of lines containing "FEN"
10
- count=$(grep -c "FEN" "$file")
11
- # Print the filename and the count
12
- echo "$file: $count"
13
- fi
14
- done