|
| 1 | + |
1 | 2 | #ifdef ALLOW_5_MEN_ENDGAME |
2 | 3 | if (num_pieces == 5) { |
3 | 4 | cerr << "################################################################\n" |
@@ -37,36 +38,7 @@ for (int player=0; player<(symmetric_endgame ? 1 : 2); player++) { |
37 | 38 |
|
38 | 39 | for (uint i=0; i<table_size; i++) { |
39 | 40 | (*decompress_table_index)(i, piece_list); |
40 | | - |
41 | | - //cerr << "decompress_table_index_en_passant: " << decompress_table_index_en_passant << "\n"; |
42 | | - |
43 | | - /* |
44 | | -#include "board_define_position_constants.hxx" |
45 | | - bool test = (piece_list[0].pos == a1) && (piece_list[1].pos == a4) && |
46 | | - (piece_list[2].pos == e1) && (piece_list[3].pos == b4); |
47 | | -#include "board_undef_position_constan int &_castling, int &_en_passant,// use 0, ILLEGAL_POS as default |
48 | | - int _moves_played_since_progress = 0, int full_move_number = 1);ts.hxx" |
49 | | - if (test) cerr << "Interesting position: index = " << i << "\n"; |
50 | | - */ |
51 | | - |
52 | 41 | bool legal_position = board.set_board(piece_list, player); |
53 | | - |
54 | | - /* No need to trash unreachable positions in the table. |
55 | | - They are trashed when constructing the bdd instead. |
56 | | - if (legal_position && board.unreachable_position() && |
57 | | - *(endgame_settings->trash_unreachable_positions)) { |
58 | | - board.print_board(big_output); |
59 | | - legal_position = false; |
60 | | - } |
61 | | - */ |
62 | | - |
63 | | - /* |
64 | | - cerr << "index = " << i << ", position = "; |
65 | | - for (uint j=0; j<piece_list.size(); j++) |
66 | | - cerr << POS_NAME[piece_list[j].pos] << ", "; |
67 | | - cerr << "player = " << player << "\n"; |
68 | | - */ |
69 | | - |
70 | 42 | if (legal_position) { |
71 | 43 | int status; |
72 | 44 | switch (status = board.calc_game_status()) { |
@@ -110,15 +82,6 @@ for (int player=0; player<(symmetric_endgame ? 1 : 2); player++) { |
110 | 82 | } else { |
111 | 83 |
|
112 | 84 | table[player][i] = ENDGAME_TABLE_ILLEGAL; |
113 | | - |
114 | | - /* |
115 | | - if (i==258376) { |
116 | | - cerr << "Illegal position:\n(k1,p1,p2,k2,p3)=(" << POS_NAME[piece_list[0].pos] << ", " |
117 | | - << POS_NAME[piece_list[1].pos] << ", " << POS_NAME[piece_list[2].pos] << ", " |
118 | | - << POS_NAME[piece_list[3].pos] << ", " << POS_NAME[piece_list[4].pos] |
119 | | - << "), player = " << player << "\n"; |
120 | | - } |
121 | | - */ |
122 | 85 | } |
123 | 86 | } |
124 | 87 | } |
|
0 commit comments