Closed twoplan closed 5 years ago
Thanks for the report. All bugs are fixed in new version 2.2.
The file engines.json is there, but I get this error message now:
./banksia -jsonpath tour.json
Banksia, Chess Tournament Manager, by Nguyen Pham - version 2.2
Error: missing parametter "engine configurations" or the file is not existed
If engines.json is renamed to engines.jso (in tour.json) the error message changes. It seems that Banksia found the file in the first case, but for a different reason doesn't like to continue.
./banksia -jsonpath tour.json
Banksia, Chess Tournament Manager, by Nguyen Pham - version 2.2
Error: cannot load (or broken) json file /Users/max/chess/Banksia/engines.jso, error: * Line 1, Column 1
Syntax error: value, object or array expected.
Error: missing parametter "engine configurations" or the file is not existed
Argh .. just noticed, that you changed the engines.json layout.
./banksia -jsonpath tour.json
Banksia, Chess Tournament Manager, by Nguyen Pham - version 2.2
opening books loaded, total items: 404
type: roundrobin, timer: 40/1:0.5, players: 3, matches: 6, concurrency: 1, ponder: off, book: on
pgn: /Users/max/chess/Banksia/games.pgn, on
result: /Users/max/chess/Banksia/logresult.txt, on
engines: /Users/max/chess/Banksia/logengine.txt, on
1. Glaurung-2.2 vs Gaviota-1.0
1) Glaurung-2.2 vs Gaviota-1.0, #248, 0-1 (mate)
2. Gaviota-1.0 vs Glaurung-2.2
2) Gaviota-1.0 vs Glaurung-2.2, #153, 1-0 (mate)
3. Glaurung-2.2 vs Crafty-25.3
3) Glaurung-2.2 vs Crafty-25.3, #131, 1-0 (mate)
4. Crafty-25.3 vs Glaurung-2.2
4) Crafty-25.3 vs Glaurung-2.2, #123, 0-1 (mate)
5. Gaviota-1.0 vs Crafty-25.3
5) Gaviota-1.0 vs Crafty-25.3, #155, 1-0 (mate)
6. Crafty-25.3 vs Gaviota-1.0
6) Crafty-25.3 vs Gaviota-1.0, #131, 0-1 (mate)
--------------------------------------------------------------
# name games wins draws losses score
1. Gaviota-1.0 4 100.0% 0.0% 0.0% 4.0
2. Glaurung-2.2 4 50.0% 0.0% 50.0% 2.0
3. Crafty-25.3 4 0.0% 0.0% 100.0% 0.0
--------------------------------------------------------------
Tournamemt finished! Elapsed: 5:18
8. Bg7 xd5
1. Nc3 2. Nc6
125. Qa3+
White checkmates, but Banksia counts the game as 0-1[Event "Round robin engine tournament"]
[Site "MacBook Air"]
[Date "2019.07.14"]
[Round "1"]
[White "Glaurung-2.2"]
[Black "Gaviota-1.0"]
[Result "0-1"]
[TimeControl "40/1:0.5"]
[Time "11:43:17"]
[Board "1"]
[Termination "mate"]
[FEN "rnbqkb1r/ppp1pppp/5n2/3p4/3P4/5N2/PPP1PPPP/RNBQKB1R w KQkq - 0 1"]
[SetUp "1"]
1. Nc3 2. Nc6 e3 3. a6 Bd3 4. g6 O-O 5. Bf5
Na4 6. Ne4 Nh4 7. Bc8 c4 8. Bg7 xd5 9. Qxd5
Qf3 10. Nf6 Qxd5 11. Nxd5 Be4 12. e6 Nc3 13. Nce7
Bd2 14. f5 Bd3 15. Nxc3 Bxc3 16. Bd7 Ba5 17. Nd5
Rfc1 18. b6 Bd2 19. Bb5 Bc2 20. Kd7 a4 21. Be2
a5 22. b5 Re1 23. Bh5 Rab1 24. Rac8 b4 25. g5
Nxf5 26. xf5 Bxf5+ 27. Ke7 Bxc8 28. Rxc8 Rbc1 29. Kd7
e4 30. Ne7 Bc3 31. Nc6 d5 32. Ne5 Kf1 33. Rg8
Rc2 34. g4 Ke2 35. Bf6 Bxe5 36. Bxe5 Ke3 37. Bd6
Rec1 38. Rf8 Rb1 39. Rf6 Kd4 40. Rf4 Re2 41. Be7
Rb3 42. Bf6+ Ke3 43. Bg5 Rbb2 44. Rf8+ Kd4 45. g3
hxg3 46. Bxe2 Rxe2 47. Be7 Rb2 48. Rg8 Rb1 49. Rg4
Rb3 50. Bf6+ Ke3 51. h5 Rb1 52. Be7 Kd4 53. Bf6+
Kd3 54. Be7 Kd4 55. Bf6+ Kd3 56. h4 Ke3 57. Rg6
Kf4 58. Bd4 xh4 59. Rxg2 f3 60. Bf6 h5 61. Be7
e5 62. Rh2 Kg3 63. Rxh5 f4 64. Kd8 Kg4 65. Rh2
Kf5 66. Kd7 Kg6 67. Rg2+ Kf5 68. Rc2 Kg6 69. Rg2+
Kf5 70. Rd2 Ke4 71. Rc2 Rh1 72. Bxb4 Rh7+ 73. Kc8
Rh8+ 74. Kb7 Rh7 75. Kc8 Rh8+ 76. Kb7 Rh7 77. Rc4+
Ke3 78. Kc8 f5 79. Bc5+ Kf3 80. b4 Rh8+ 81. Kb7
f6 82. b3 Rh1 83. b2 Rb1 84. Rc2 e6 85. Kc8
Ke4 86. Rf2 Ke5 87. Bd6+ Kd4 88. Rxf6 Rxb2 89. Rf4+
Ke3 90. Ra4 Rg2 91. Kd8 Rg8+ 92. Ke7 Rg7+ 93. Kf8
Rh7 94. Rxa5 Ke4 95. Ra4+ Kd3 96. a5 Rh1 97. Rb4
Rh8+ 98. Kg7 Rh1 99. a4 Rf1 100. a3 Kc3 101. Rf4
Rh1 102. Rf3+ Kc4 103. a2 Ra1 104. Ra3 Kb5 105. Be5
Kb4 106. Ra7 Rg1+ 107. Kf8 Rf1+ 108. Ke8 Rh1 109. Rb7+
Ka3 110. a1=R+ Rxa1 111. Ra7+ Kb4 112. Rxa1 Kb5 113. Rd1
Kc4 114. Ke7 Kc5 115. Rd4 Kc6 116. Rb4 d6+ 117. Bxd6
Kd5 118. c5 Kc6 119. c4 Kd5 120. c3 Kc6 121. c2
Kd5 122. Rf4 Kc6 123. c1=Q+ Kb5 124. Rb4+ Ka5 125. Qa3+
0-1
Ah, thanks. I missed them! My PGN generator has some bugs, including wrong counting and creating SAN moves (such as creating xd5). All will be fixed soon (maybe done tomorrow).
The lucky point is that the game is still correct. The result is correct too (the last move is actually made by Black event the counter says White). That PGN is still readable by other GUI (e.g. WinBoard can read correctly).
All are fixed (hope that ;) ) in the new version 2.22.
Warning: I have changed the structure of JSON control file again: group logs together (to make them look better). If you feel tired to change them again, please try (and help me to test) the new feature to generate automatically all JSON files. In my iMac, the process of generating takes under 3 minutes even it has to test about 70 files to detect 23 engines from them. That is all, you may forget to change JSON fields, except the fields of opening books.
Great, version 2.22 works for me. ChessX now reads the complete pgn. Well done!
A small feature request: when playing two games per opponent ("games per pair" : 2), it would be nice Banksia feeds the same opening to both players. So an engine gets the same opening with white and black. Maybe as an option in tour.json?
./banksia -jsonpath tour.json
Banksia, Chess Tournament Manager, by Nguyen Pham - version 2.22
opening books loaded, total items: 404
type: roundrobin, timer: 40/1:0.5, players: 3, matches: 6, concurrency: 1, ponder: off, book: on
pgn: /Users/max/chess/Banksia/games.pgn, on
result: /Users/max/chess/Banksia/logresult.txt, on
engines: /Users/max/chess/Banksia/logengine.txt, on
1. Komodo-10 vs Arasan-21.4
1) Komodo-10 vs Arasan-21.4, #86, 0-1 (mate)
2. Arasan-21.4 vs Komodo-10
2) Arasan-21.4 vs Komodo-10, #165, 1-0 (mate)
3. Arasan-21.4 vs Crafty-25.3
3) Arasan-21.4 vs Crafty-25.3, #101, 1-0 (mate)
4. Crafty-25.3 vs Arasan-21.4
4) Crafty-25.3 vs Arasan-21.4, #162, 0-1 (mate)
5. Crafty-25.3 vs Komodo-10
5) Crafty-25.3 vs Komodo-10, #105, 0-1 (mate)
6. Komodo-10 vs Crafty-25.3
6) Komodo-10 vs Crafty-25.3, #113, 1-0 (mate)
-------------------------------------------------------------
# name games wins draws losses score
1. Arasan-21.4 4 100.0% 0.0% 0.0% 4.0
2. Komodo-10 4 50.0% 0.0% 50.0% 2.0
3. Crafty-25.3 4 0.0% 0.0% 100.0% 0.0
-------------------------------------------------------------
Tournamemt finished! Elapsed: 3:44
[Event "Roundrobin engine tournament"]
[Site "MacBook Air"]
[Date "2019.07.15"]
[Round "1"]
[White "Komodo-10"]
[Black "Arasan-21.4"]
[Result "0-1"]
[TimeControl "40/1:0.5"]
[Time "15:36:18"]
[Board "1"]
[Termination "mate"]
[FEN "rnbqkbnr/pp2pppp/3p4/2p5/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq c6 0 1"]
[SetUp "1"]
1. c3 Nf6 2. d4 Nxe4 3. dxc5 Nxc5 4. Be3 Nbd7
5. Nbd2 e5 6. b4 Ne6 7. Ne4 Qc7 8. Qd5 Be7
9. O-O-O O-O 10. Qc4 Qb8 11. Qd3 Nb6 12. Nxd6 Rd8
13. Nxc8 Qxc8 14. Qc2 Nd5 15. Bd3 Nxc3 16. Bxh7+ Kf8
17. Rxd8+ Qxd8 18. Kb2 Rc8 19. Qd2 Qc7 20. Rc1 Bxb4
21. Ka1 g6 22. Bh6+ Ke8 23. Qb2 Qa5 24. Bd2 e4
25. Nh4 b5 26. Bxg6 fxg6 27. Nxg6 Nd4 28. f3 Ba3
29. Qxc3 Rxc3 30. Bxc3 Qd8 31. Bb2 Qf6 32. Kb1 Qxg6
33. Bxa3 exf3+ 34. Ka1 fxg2 35. Rg1 Nc2+ 36. Kb2 Nxa3
37. Kc3 Qc2+ 38. Kd4 Qf2+ 39. Ke4 Qxg1 40. Kf3 Qf1+
41. Ke4 g1=Q 42. h3 Qc5 43. h4 Qff5# 0-1
[Event "Roundrobin engine tournament"]
[Site "MacBook Air"]
[Date "2019.07.15"]
[Round "1"]
[White "Arasan-21.4"]
[Black "Komodo-10"]
[Result "1-0"]
[TimeControl "40/1:0.5"]
[Time "15:37:31"]
[Board "2"]
[Termination "mate"]
[FEN "rnbqkbnr/p2ppppp/1p6/2p5/4P3/1P6/P1PP1PPP/RNBQKBNR w KQkq - 0 1"]
[SetUp "1"]
1. Nf3 e6 2. Bb2 Nc6 3. Bc4 a6 4. a4 d5
5. exd5 exd5 6. Qe2+ Nge7 7. Bd3 Nb4 8. O-O Nxd3
9. Qxd3 Bf5 10. Qe2 d4 11. d3 Rc8 12. a5 b5
13. Nbd2 Qd5 14. b4 Be6 15. bxc5 Nc6 16. c4 dxc3
17. Bxc3 Rd8 18. Ne4 b4 19. Bb2 Qxd3 20. Qe1 h6
21. Ne5 Nxe5 22. Bxe5 b3 23. Rc1 Rd5 24. Bb2 Be7
25. Bxg7 Rg8 26. Rc3 Qb5 27. Bf6 Rg6 28. Bxe7 Kxe7
29. c6 b2 30. c7 Re5 31. Qb1 Qb4 32. Re3 Rxa5
33. Qd3 Kf8 34. Nf6 Qb7 35. g3 Rxf6 36. Qd8+ Kg7
37. Rxe6 Rxe6 38. c8=Q Qxc8 39. Qxc8 Rb5 40. Rb1 Reb6
41. Qc3+ Kg8 42. Qc8+ Kh7 43. f3 a5 44. Qg4 Rc5
45. Qe4+ Kg8 46. Qe8+ Kg7 47. Qe3 Rcb5 48. h4 Kg8
49. Qe8+ Kg7 50. Qe4 Kg8 51. Kf2 Kg7 52. Qe1 Kf8
53. Qe3 Kg8 54. Qe8+ Kg7 55. Qe4 Kg8 56. g4 Rb8
57. g5 Rb4 58. Qe5 R4b5 59. Qf6 hxg5 60. hxg5 R5b6
61. Qc3 Rb3 62. Qxa5 R3b5 63. Qc7 Rb3 64. Qh2 Rc8
65. Qe5 Rc2+ 66. Kg3 Rc1 67. Rxb2 Rxb2 68. Qxb2 Re1
69. Qc2 Re8 70. Kg4 Re6 71. f4 Kf8 72. f5 Re1
73. Qc5+ Ke8 74. Qb5+ Ke7 75. Qb4+ Kd7 76. Qxe1 Kc6
77. g6 fxg6 78. fxg6 Kc5 79. g7 Kd4 80. g8=Q Kc5
81. Qc8+ Kb5 82. Qb1+ Ka4 83. Qa6# 1-0
Thanks!
For openings, I have been implementing a new feature: select type. There are three types:
There is also a field "seed" for controlling random seed when selecting openings too.
Any suggestions?
Thats great!
I ran a small test with Banksia 2.00 and noticed some strange issues.
"game per pair" : 2,
18. xe5 xe5