tromp / ChessPositionRanking

Software suite for ranking chess positions and accurately estimating the number of legal chess positions
MIT License
138 stars 7 forks source link

B1RN1k1q/q5Qp/1BQ4R/B1K2PNb/1R1nq1r1/8/3P2PP/b1Rbnr2 b - - 0 1 #906

Closed tromp closed 3 years ago

tromp commented 3 years ago

B1RN1k1q/q5Qp/1BQ4R/B1K2PNb/1R1nq1r1/8/3P2PP/b1Rbnr2 b - - 0 1

img

Single Check wx 0 wp 4 wpr 4 wpx 0 maxuwp 4 minopp 0 bx 4 bp 1 bpr 3 bpx 4 maxubp 1 minopp 0

ruedigerj commented 3 years ago

Legal: https://www.chess.com/a/AsuCvjBt2KhQa

tromp commented 3 years ago

Great job! That site doesn't seem able to show the FEN of the final position though. If I instead feed this PGN

  1. b4 a5 2. bxa5 g5 3. f4 b5 4. fxg5 f5 5. e4 d5 6. exf5 c5 7. c4 b4 8. cxd5 Bg7 9. a4 b3 10. Ra3 Nc6 11. a6 Rb8 12. a7 Rb4 13. a8=R Ba1 14. Ke2 Nf6 15. Kd3 Rg4 16. a5 Nd4 17. Kc4 e5 18. a6 Ne4 19. Rb8 Nf3 20. Kb5 Rg8 21. Bb2 Qf6 22. Bc3 Qh8 23. d6 b2 24. Ba5 c4 25. Nc3 b1=B 26. d7+ Ke7 27. d8=B+ Ke8 28. Bdb6 Rf8 29. g6 Nf6 30. Nd5 c3 31. g7 c2 32. g8=R c1=Q 33. Qb3 Qc7 34. Ne7 Qa7 35. Nc6 Bc2 36. Nd8 Bd1 37. Ra4 Qf7 38. a7 Ne1 39. a8=Q e4 40. Nh3 e3 41. Qa6 Nf3 42. Bc4 e2 43. Bd5 e1=Q 44. Ba8 Qa7 45. Qb7 Nd5 46. Rb4 Rf4 47. Rg6 Rf6 48. Rh6 Re6 49. Ng5 Nh4 50. Rf1 Bh5 51. Rf3 Rg4 52. Rc3 Qe4 53. Rc1 Qed4 54. Qb2 Re1 55. Qb3 Rf1 56. Qb2 Nf3 57. Qb3 Ne1 58. Qb2 Be6 59. Qb3 Nf4 60. Qb2 Bb3 61. Qa3 Bd1 62. Qb3 Qe4 63. Kc5 Ne2 64. Qe6+ Kf8 65. Qbc6 Nd4 66. Qe5 Bb2 67. Rc8 Ba1 68. Qg7+

into lichess then it immediately shows me the final position FEN B1RN1k1q/q5Qp/1BQ4R/B1K2PNb/1R1nq1r1/8/3P2PP/b1Rbnr2 b - - 49 68 which is a match, apart from the irrelevant final two numbers. Comparing strings is easier than comparing diagrams and sidetomove/castling/ep info.