Chess notation parsing tools.
Project description
#Chess Notation Parser (Python) __Ch__ess __No__tation __P__arser P __y__thon
chenopy provides easy to use chess notation parsing for all the major chess notation standards, including: * PGN - Potable Game Notation (game notation) * FEN - Forsyth–Edwards Notation (position notation) * SAN - Standard Algebraic Notation (move notation)
## Examples
### PGN [Event “F/S Return Match”] [Site “Belgrade, Serbia Yugoslavia|JUG”] [Date “1992.11.04”] [Round “29”] [White “Fischer, Robert J.”] [Black “Spassky, Boris V.”] [Result “1/2-1/2”]
1. e4 e5 2. Nf3 Nc6 3. Bb5 {This opening is called the Ruy Lopez.} 3… a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3 O-O 9. h3 Nb8 10. d4 Nbd7 11. c4 c6 12. cxb5 axb5 13. Nc3 Bb7 14. Bg5 b4 15. Nb1 h6 16. Bh4 c5 17. dxe5 Nxe4 18. Bxe7 Qxe7 19. exd6 Qf6 20. Nbd2 Nxd6 21. Nc4 Nxc4 22. Bxc4 Nb6 23. Ne5 Rae8 24. Bxf7+ Rxf7 25. Nxf7 Rxe1+ 26. Qxe1 Kxf7 27. Qe3 Qg5 28. Qxg5 hxg5 29. b3 Ke6 30. a3 Kd6 31. axb4 cxb4 32. Ra5 Nd5 33. f3 Bc8 34. Kf2 Bf5 35. Ra7 g6 36. Ra6+ Kc5 37. Ke1 Nf4 38. g3 Nxh3 39. Kd2 Kb5 40. Rd6 Kc5 41. Ra6 Nf2 42. g4 Bd3 43. Re6 1/2-1/2
### FEN rnbqkbnr/pp1ppppp/8/2p5/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq - 1 2
## SAN 1. e4 e5 2. Nf3 Nc6 3. Bb5 a6
__OR__
e4 e5 2. Nf3 Nc6 3. Bb5 a6
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Chenopy-1.0.tar.gz
.
File metadata
- Download URL: Chenopy-1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 513e496ed91686023d00a13eb735d0b1b10a09335f68979346fc5766724832d2 |
|
MD5 | c46f9c5a7a4dcb49b32c0736ab8e1625 |
|
BLAKE2b-256 | 3ab360a31147f5725b48e73f96569621e255c1fc8b834e479fb91ce57de7d3ca |