Je m'occupe d'un site d'échecs et j'aimerais porter une petite touche pour le différencier des autres club de la région.
Voilà, j'ai un fichier texte avec par exemple 1000 parties sous cette forme
Forcément, ici j'en ai que 3 sinon ce serait vraiment trop long.[Event "Chamalieres-Saint Affrique"]
[Site "Chamalières"]
[Date "21.10.21"]
[Round "1.1"]
[White "Etchegaray, Patrice"]
[Black "Georgiev, Krum"]
[Result "1-0"]
[ECO "B22"]
[WhiteElo "2368"]
[BlackElo "2488"]
[PlyCount "77"]
[EventDate "21.??.??"]
[WhiteTeam "Chamalières"]
[BlackTeam "Saint Affrique"]
1. e4 c5 2. c3 d6 3. d4 Nf6 4. Bd3 Nc6 5. d5 Ne5 6. Nf3 Nxd3+ 7. Qxd3 g6 8. c4
Bg7 9. Nc3 O-O 10. O-O Bg4 11. h3 Bxf3 12. Qxf3 Nd7 13. Bd2 a6 14. a4 Qb6 15.
Qe2 Qb3 16. Ra3 Qxb2 17. Ra2 Qb6 18. Rb1 Qc7 19. Rab2 Rab8 20. f4 b6 21. Rb3
Nf6 22. g4 e6 23. g5 Nd7 24. h4 Qd8 25. Kg2 Qe7 26. Qf3 Rbe8 27. Re1 Qd8 28. h5
f6 29. hxg6 hxg6 30. dxe6 Rxe6 31. Qh3 Re7 32. Nd5 fxg5 33. f5 g4 34. Nxe7+
Qxe7 35. Qxg4 Ne5 36. Qh3 Qb7 37. fxg6 Rf6 38. Qh7+ Kf8 39. Bg5 1-0
[Event "Chamalieres-Saint Affrique"]
[Site "Chamalières"]
[Date "21.10.21"]
[Round "1.2"]
[White "Leygue, Dominique"]
[Black "Robin, Samy"]
[Result "0-1"]
[ECO "C47"]
[WhiteElo "2321"]
[BlackElo "2355"]
[PlyCount "80"]
[EventDate "21.??.??"]
[WhiteTeam "Saint Affrique"]
1. e4 e5 2. Nf3 Nc6 3. Nc3 Nf6 4. d4 exd4 5. Nxd4 Bb4 6. Nxc6 bxc6 7. Bd3 d5 8.
exd5 cxd5 9. O-O O-O 10. Bg5 c6 11. Qf3 Be7 12. Rfe1 Re8 13. h3 h6 14. Bh4 Rb8
15. b3 Rb4 16. Bg3 Be6 17. Ne2 c5 18. Rad1 Bc8 19. Be5 Rb6 20. Ng3 Bf8 21. Bc3
Rxe1+ 22. Rxe1 Re6 23. Rxe6 Bxe6 24. Bxf6 Qxf6 25. Qxf6 gxf6 26. c4 d4 27. Nh5
f5 28. Ng3 f4 29. Nh5 Bd6 30. Kf1 f3 31. g4 Be5 32. Be4 Kf8 33. Bxf3 f5 34. Bd5
Bxd5 35. cxd5 f4 36. Ke2 Ke7 37. Kf3 d3 38. h4 Kd6 39. g5 hxg5 40. hxg5 Kxd5
0-1
[Event "Chamalieres-Saint Affrique"]
[Site "Chamalières"]
[Date "21.10.21"]
[Round "1.3"]
[White "Blanc, Sebastien"]
[Black "Boyd, Stephen"]
[Result "0-1"]
[ECO "A42"]
[WhiteElo "2137"]
[BlackElo "2333"]
[PlyCount "106"]
[EventDate "21.??.??"]
[WhiteTeam "Chamalières"]
[BlackTeam "Saint Affrique"]
1. d4 g6 2. c4 Bg7 3. e4 d6 4. Nf3 e5 5. Nc3 Nd7 6. Be2 c6 7. O-O Nh6 8. d5 c5
9. a3 O-O 10. b4 f6 11. Nb5 Nf7 12. Ne1 f5 13. Nc3 b6 14. Nd3 Nf6 15. f3 f4 16.
a4 a5 17. bxa5 bxa5 18. Bd2 g5 19. g4 fxg3 20. hxg3 h5 21. Kg2 Bh6 22. Rh1 Kh7
23. Qc2 Rg8 24. Raf1 h4 25. g4 Nh8 26. Qc1 Ng6 27. Nf2 Nf4+ 28. Bxf4 exf4 29.
Bd3 Kh8 30. e5 dxe5 31. Nce4 Bf8 32. Qc3 Nxe4 33. Nxe4 Bd6 34. Rb1 Rg7 35. Rb2
Rb8 36. Rxb8 Bxb8 37. Nxc5 Ba7 38. Nb3 Qe8 39. Qxa5 Bxg4 40. fxg4 e4 41. Re1
Be3 42. Qc3 exd3 43. Nc5 d2 44. Qxd2 Qc8 45. Rxe3 Qxg4+ 46. Kh1 fxe3 47. Qxe3
Rf7 48. Ne6 Qd1+ 49. Kh2 Qc2+ 50. Kh3 Qf5+ 51. Kh2 g4 52. Qd4+ Kg8 53. Qe3 g3+
0-1
Alors ce que j'aimerais faire, c'est que quand je fais une recherche d'un joueur blanc, il me sélectionne toutes les parties de ce joueur. Et vice versa avec les noirs.
En fait il faudrait qu'il me sélectionne la partie, ce qui est en rouge ici par exemple
Ca fait 2 jours que je cherche et je sais pas comment m'y prendre ??[Event "Chamalieres-Saint Affrique"]
[Site "Chamalières"]
[Date "21.10.21"]
[Round "1.1"]
[White "Etchegaray, Patrice"]
[Black "Georgiev, Krum"]
[Result "1-0"]
[ECO "B22"]
[WhiteElo "2368"]
[BlackElo "2488"]
[PlyCount "77"]
[EventDate "21.??.??"]
[WhiteTeam "Chamalières"]
[BlackTeam "Saint Affrique"]
1. e4 c5 2. c3 d6 3. d4 Nf6 4. Bd3 Nc6 5. d5 Ne5 6. Nf3 Nxd3+ 7. Qxd3 g6 8. c4
Bg7 9. Nc3 O-O 10. O-O Bg4 11. h3 Bxf3 12. Qxf3 Nd7 13. Bd2 a6 14. a4 Qb6 15.
Qe2 Qb3 16. Ra3 Qxb2 17. Ra2 Qb6 18. Rb1 Qc7 19. Rab2 Rab8 20. f4 b6 21. Rb3
Nf6 22. g4 e6 23. g5 Nd7 24. h4 Qd8 25. Kg2 Qe7 26. Qf3 Rbe8 27. Re1 Qd8 28. h5
f6 29. hxg6 hxg6 30. dxe6 Rxe6 31. Qh3 Re7 32. Nd5 fxg5 33. f5 g4 34. Nxe7+
Qxe7 35. Qxg4 Ne5 36. Qh3 Qb7 37. fxg6 Rf6 38. Qh7+ Kf8 39. Bg5 1-0
[Event "Chamalieres-Saint Affrique"]
[Site "Chamalières"]
[Date "21.10.21"]
[Round "1.2"]
[White "Leygue, Dominique"]
[Black "Robin, Samy"]
[Result "0-1"]
[ECO "C47"]
[WhiteElo "2321"]
[BlackElo "2355"]
[PlyCount "80"]
[EventDate "21.??.??"]
[WhiteTeam "Saint Affrique"]
1. e4 e5 2. Nf3 Nc6 3. Nc3 Nf6 4. d4 exd4 5. Nxd4 Bb4 6. Nxc6 bxc6 7. Bd3 d5 8.
exd5 cxd5 9. O-O O-O 10. Bg5 c6 11. Qf3 Be7 12. Rfe1 Re8 13. h3 h6 14. Bh4 Rb8
15. b3 Rb4 16. Bg3 Be6 17. Ne2 c5 18. Rad1 Bc8 19. Be5 Rb6 20. Ng3 Bf8 21. Bc3
Rxe1+ 22. Rxe1 Re6 23. Rxe6 Bxe6 24. Bxf6 Qxf6 25. Qxf6 gxf6 26. c4 d4 27. Nh5
f5 28. Ng3 f4 29. Nh5 Bd6 30. Kf1 f3 31. g4 Be5 32. Be4 Kf8 33. Bxf3 f5 34. Bd5
Bxd5 35. cxd5 f4 36. Ke2 Ke7 37. Kf3 d3 38. h4 Kd6 39. g5 hxg5 40. hxg5 Kxd5
0-1
[Event "Chamalieres-Saint Affrique"]
[Site "Chamalières"]
[Date "21.10.21"]
[Round "1.3"]
[White "Blanc, Sebastien"]
[Black "Boyd, Stephen"]
[Result "0-1"]
[ECO "A42"]
[WhiteElo "2137"]
[BlackElo "2333"]
[PlyCount "106"]
[EventDate "21.??.??"]
[WhiteTeam "Chamalières"]
[BlackTeam "Saint Affrique"]
1. d4 g6 2. c4 Bg7 3. e4 d6 4. Nf3 e5 5. Nc3 Nd7 6. Be2 c6 7. O-O Nh6 8. d5 c5
9. a3 O-O 10. b4 f6 11. Nb5 Nf7 12. Ne1 f5 13. Nc3 b6 14. Nd3 Nf6 15. f3 f4 16.
a4 a5 17. bxa5 bxa5 18. Bd2 g5 19. g4 fxg3 20. hxg3 h5 21. Kg2 Bh6 22. Rh1 Kh7
23. Qc2 Rg8 24. Raf1 h4 25. g4 Nh8 26. Qc1 Ng6 27. Nf2 Nf4+ 28. Bxf4 exf4 29.
Bd3 Kh8 30. e5 dxe5 31. Nce4 Bf8 32. Qc3 Nxe4 33. Nxe4 Bd6 34. Rb1 Rg7 35. Rb2
Rb8 36. Rxb8 Bxb8 37. Nxc5 Ba7 38. Nb3 Qe8 39. Qxa5 Bxg4 40. fxg4 e4 41. Re1
Be3 42. Qc3 exd3 43. Nc5 d2 44. Qxd2 Qc8 45. Rxe3 Qxg4+ 46. Kh1 fxe3 47. Qxe3
Rf7 48. Ne6 Qd1+ 49. Kh2 Qc2+ 50. Kh3 Qf5+ 51. Kh2 g4 52. Qd4+ Kg8 53. Qe3 g3+
0-1
J'espère que vous m'avez compris
Merci d'avance pour votre aide
Un peu comme sur ce site du Canada : http://www.fqechecs.qc.ca/index.php
Sur la gauche un peu vers le bas : module rechercher parties