One billion random games

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Kurt22
Posts: 10
Joined: Mon Oct 08, 2018 8:03 pm
Full name: Kurt Kish

Re: One billion random games

Post by Kurt22 »

hgm wrote: Tue Dec 11, 2018 11:12 am After a lot of trial and error I arrived at the following weight table, on which it was not easy to improve in a way that would be obvious in 1 million games:

Code: Select all

attacker           victim
         -    P    N    B    R    Q
   P     1  400  250  250  250  400
   N     1   75  150   75   75   75
   B     1   60   60  100   60  100
   R     1   40   40   40   60  100
   Q     1    6   25   80   80  100
   K     1   50   50   50   50   50
   
Could you post a few sample games with the final weight table? Interested to see some games :)
User avatar
hgm
Posts: 27799
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: One billion random games

Post by hgm »

Although I normally don't save the games, the game generator fortunately also is a normal WB engine, so I can play it against itself under WinBoard and let the latter save the games as PGN. (The first attempt atthis led to spurious draw claims, as it did not update the position key on moves that it did not make itself, but that is now fixed.) Here are a few typical games

[pgn][Event "Game from non-PGN file"] [Site "MAKRO-PC"] [Date "2018.12.13"] [Round "-"] [White "?"] [Black "?"] [Result "1/2-1/2"] 1. a4 a6 2. Ra2 e5 3. g3 c6 4. a5 Qf6 5. h3 d6 6. f4 exf4 7. gxf4 Bxh3 8. Na3 Bxf1 9. Kxf1 Qxf4+ 10. Ke1 Qh6 11. Ra1 Qxh1 12. Nb5 axb5 13. Ra3 Rxa5 14. Rxa5 Qh4+ 15. Kf1 Qc4 16. Rxb5 cxb5 17. Kg2 h5 18. b3 Ne7 19. bxc4 bxc4 20. Qf1 Rh6 21. Nh3 Ng8 22. Qf3 h4 23. Nf4 Be7 24. Nh3 g6 25. Ng1 g5 26. Qxb7 h3+ 27. Nxh3 Rxh3 28. Kxh3 f6 29. Qxb8+ Kf7 30. Qa8 Nh6 31. d4 Ng8 32. Bxg5 Nh6 33. Bxh6 Bf8 34. Bxf8 Kg6 35. Bxd6 Kf7 36. Bh2 Ke7 37. Bg3 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4 55. Kb1 Rd1+ 56. Ka2 Bd6 57. Kb3 Rd3+ 58. Kb2 Bc7 59. Ka1 Rd2 60. Kb1 Rf2 61. Ka1 Bf4 62. Kb1 Kb8 63. Ka1 Bc7 64. Kb1 d4 65. Kc1 Be5 66. Kb1 Re2 67. Kc1 Re1+ 68. Kb2 Rf1 69. Ka2 Bg7 70. Kb2 Rf2+ 71. Kb3 Rf3 72. Kxb4 Bh6 73. Kc5 Bg5 74. Kxd4 Bf4 75. Kd3 Ka8 76. Ke2 Be5 77. Kxf3 Bd6 78. Kxe3 1/2-1/2 [/pgn]

Only ~5% of the games produces a win; I selected some of those:

[pgn][Event "Game from non-PGN file"] [Site "MAKRO-PC"] [Date "2018.12.13"] [Round "-"] [White "?"] [Black "?"] [Result "1-0"] 1. g4 Nh6 2. f4 Nxg4 3. Bh3 d5 4. Bxg4 Bxg4 5. f5 Bxe2 6. Nxe2 e5 7. Kf2 Qf6 8. Ng1 a5 9. Ke2 Qh6 10. Qf1 Qxh2+ 11. Rxh2 Kd7 12. Rxh7 Ba3 13. bxa3 Rxh7 14. Nc3 Rh4 15. Nb1 d4 16. Nf3 c5 17. Nxh4 b6 18. c4 Kc7 19. Ke1 a4 20. Qh1 f6 21. Qxa8 d3 22. Qxb8+ Kxb8 23. Ng2 Kc7 24. Kf1 Kc6 25. Kf2 g5 26. Ke1 Kd7 27. Ne3 Kd8 28. Kf2 Kc7 29. Kf1 Kd6 30. Ke1 Kc7 31. Kd1 Kb8 32. Bb2 Kc7 33. Nc2 dxc2+ 34. Kxc2 Kb8 35. Bxe5+ fxe5 36. d3 Ka7 37. Nc3 Kb7 38. Nxa4 Kc7 39. Nxb6 Kxb6 40. a4 Kc6 41. Rh1 e4 42. dxe4 Kc7 43. Kd2 Kc6 44. Rh5 Kd7 45. Ke1 Ke7 46. Rxg5 Kf6 47. Rg6+ Ke5 48. Rg7 Kxe4 49. a5 Kd4 50. Ke2 Kxc4 51. Rg8 Kd5 52. Rg2 Ke5 53. Ke3 Kxf5 54. Rc2 Kg6 55. Rxc5 Kf7 56. Ke2 Ke8 57. Rh5 Kd7 58. a4 Kc8 59. Kd1 Kd8 60. a6 Kd7 61. Kc2 Kd6 62. Kc1 Ke7 63. Rh4 Kd6 64. Rh5 Ke6 65. Rh4 Ke7 66. Kd1 Kd7 67. Rh1 Kd6 68. Rh4 Kc7 69. Kc1 Kb6 70. Re4 Kxa6 71. Re8 Ka7 72. Rh8 Ka6 73. Rc8 Ka5 74. Rf8 Kb4 75. Rg8 Kxa4 76. Rg6 Ka3 77. Rg1 Ka2 78. Rg3 Ka1 79. Rd3 Ka2 80. Rh3 Ka1 81. Rc3 Ka2 82. Rh3 Ka1 83. Rh8 Ka2 84. Rf8 Kb3 85. Rd8 Ka4 86. Rd5 Kb4 87. Kc2 Ka3 88. Rd3+ Ka2 89. Rc3 Ka1 90. Rd3 Ka2 91. Kc3 Kb1 92. Kc4 Ka1 93. Kb3 Kb1 94. Rg3 Ka1 95. Rg4 Kb1 96. Rg1# {Xboard adjudication: Checkmate} 1-0 [Event "Game from non-PGN file"] [Site "MAKRO-PC"] [Date "2018.12.13"] [Round "-"] [White "?"] [Black "?"] [Result "1-0"] 1. c4 b6 2. c5 bxc5 3. g3 h6 4. Nh3 a5 5. Nc3 Ba6 6. Qa4 Bxe2 7. Bxe2 Ra7 8. Qxa5 Rxa5 9. Ne4 Rh7 10. Nxc5 Rxc5 11. Ng1 Rxc1+ 12. Rxc1 Qc8 13. Rxc7 Rh8 14. Rxc8# {Xboard adjudication: Checkmate} 1-0 [Event "Game from non-PGN file"] [Site "MAKRO-PC"] [Date "2018.12.13"] [Round "-"] [White "?"] [Black "?"] [Result "0-1"] 1. g4 b6 2. Bh3 f6 3. c4 f5 4. gxf5 Nc6 5. d3 Nb4 6. e3 Nxd3+ 7. Qxd3 b5 8. cxb5 c5 9. Qxd7+ Bxd7 10. b6 axb6 11. b4 cxb4 12. f4 g6 13. fxg6 hxg6 14. Bxd7+ Qxd7 15. a3 bxa3 16. Kf1 Qd5 17. Bxa3 Qc6 18. Ke1 Rxh2 19. Bxe7 Rxa1 20. Bxf8 Rxb1# {Xboard adjudication: Checkmate} 0-1 [Event "Game from non-PGN file"] [Site "MAKRO-PC"] [Date "2018.12.13"] [Round "-"] [White "?"] [Black "?"] [Result "0-1"] 1. c4 d6 2. c5 dxc5 3. e4 f6 4. Ke2 b6 5. e5 fxe5 6. Ke1 g5 7. a3 Bh6 8. Bb5+ Bd7 9. Bxd7+ Qxd7 10. g3 Qd8 11. Qg4 e4 12. Qxg5 Bxg5 13. h3 c4 14. b3 cxb3 15. Ra2 bxa2 16. d4 a1=Q 17. Bxg5 Qxb1+ 18. Bc1 Kf8 19. Nf3 exf3 20. a4 Qxd4 21. Kf1 Qxc1# {Xboard adjudication: Checkmate} 0-1 [Event "Game from non-PGN file"] [Site "MAKRO-PC"] [Date "2018.12.13"] [Round "-"] [White "?"] [Black "?"] [Result "0-1"] 1. h3 g6 2. d3 Nc6 3. Bf4 a5 4. Rh2 d6 5. Bxd6 cxd6 6. e4 Bxh3 7. gxh3 d5 8. exd5 Bh6 9. f3 Nb4 10. Nd2 Nxd5 11. Rc1 Qb6 12. c3 Bxd2+ 13. Rxd2 Qxg1 14. d4 Qh1 15. b4 axb4 16. cxb4 Qxf1+ 17. Kxf1 Rxa2 18. h4 Rxd2 19. Qxd2 Nxb4 20. Qc2 Nxc2 21. Rxc2 e6 22. Ra2 Kf8 23. h5 gxh5 24. Ke2 h4 25. Ra1 Ke7 26. Ke3 b6 27. Ke2 Nf6 28. Ra7+ Kd6 29. Rxf7 Nh5 30. Rxh7 Rxh7 31. d5 exd5 32. Ke3 Ng3 33. Kd3 Kc7 34. Kc2 Nf5 35. Kd1 Rd7 36. Ke2 Rf7 37. Kd2 h3 38. Ke2 d4 39. Kd2 Kd6 40. Kc2 Rf6 41. Kd3 Nh4 42. Kc4 Nxf3 43. Kd3 Ke7 44. Ke4 Kd7 45. Kd3 Ne5+ 46. Kxd4 Rf1 47. K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3 37. Kg2 Kb7 38. Kg3 Ka7 39. Kf3 Kb8 40. Kxe3 a5 41. Ke2 Ka7 42. Kf1 a4 43. f7 Kb8 44. f8=Q+ Kc7 45. Qc8+ Kb6 46. Qc5+ Kb7 47. Qc4 h5 48. Ke2 Kb8 49. Kf1 h4 50. Qc6 h3 51. Qb6+ Kc8 52. Qd8+ Kxd8 53. Kf2 Kd7 54. Ke2 Ke6 55. c4 Kf5 56. Kd2 Kg4 57. Kc2 Kf5 58. Kd1 Ke6 59. Kc2 Kd6 60. Kc1 Ke6 61. c5 Kd5 62. c6 Kxc6 63. Kb1 Kb6 64. d5 Kc5 65. Kc2 Kxd5 66. Kc3 Kc5 67. Kd2 Kd5 68. Kc2 Kc4 69. Kd2 Kd5 70. Kc1 Ke4 71. Kd2 h2 72. Ke1 Kf3 73. Kf1 h1=Q# {Xboard adjudication: Checkmate} 0-1 [/pgn]