@@ -89,7 +89,6 @@ impl Game {
89
89
let evaluation_player = game
90
90
. next_player
91
91
. expect ( "Minimax only works in non-periodic playmodes" ) ;
92
-
93
92
let mut internal_arborist = if npc_params. pruning {
94
93
Arborist :: pruning ( )
95
94
} else {
@@ -140,15 +139,15 @@ impl Game {
140
139
} ;
141
140
142
141
if log {
143
- println ! (
142
+ tracing :: debug !(
144
143
"Bot checked {} boards, going to a depth of {looked}" ,
145
144
arborist. assessed( )
146
145
) ;
147
- println ! ( "Bot has the hand: {}" , game. players[ evaluation_player] . hand) ;
146
+ tracing :: debug !( "Bot has the hand: {}" , game. players[ evaluation_player] . hand) ;
148
147
149
- println ! ( "Chosen tree has the score {best_score:#?}" ) ;
148
+ tracing :: debug !( "Chosen tree has the score {best_score:#?}" ) ;
150
149
if let Some ( board) = & best_score. board {
151
- println ! ( "Bot is aiming for the board {board}" ) ;
150
+ tracing :: debug !( "Bot is aiming for the board {board}" ) ;
152
151
}
153
152
}
154
153
@@ -717,10 +716,8 @@ mod tests {
717
716
initial_board : & ' a str ,
718
717
depth : usize ,
719
718
dict : & WordDict ,
720
- turn_count : u32 ,
721
719
) -> ( & ' a str , String ) {
722
720
let mut game = test_game ( initial_board, hand) ;
723
- game. turn_count = turn_count;
724
721
725
722
let ( best_move, pruned_checks, total_checks) = best_test_move ( & game, & dict, depth) ;
726
723
@@ -989,7 +986,6 @@ mod tests {
989
986
"### ,
990
987
3 ,
991
988
& dict,
992
- 0 ,
993
989
) ;
994
990
995
991
insta:: with_settings!( {
@@ -1031,7 +1027,6 @@ mod tests {
1031
1027
"### ,
1032
1028
3 ,
1033
1029
& dict,
1034
- 0 ,
1035
1030
) ;
1036
1031
1037
1032
insta:: with_settings!( {
@@ -1073,7 +1068,6 @@ mod tests {
1073
1068
"### ,
1074
1069
3 ,
1075
1070
& dict,
1076
- 0 ,
1077
1071
) ;
1078
1072
1079
1073
insta:: with_settings!( {
@@ -1115,7 +1109,6 @@ mod tests {
1115
1109
"### ,
1116
1110
3 ,
1117
1111
& dict,
1118
- 0 ,
1119
1112
) ;
1120
1113
1121
1114
insta:: with_settings!( {
@@ -1157,7 +1150,6 @@ mod tests {
1157
1150
"### ,
1158
1151
3 ,
1159
1152
& dict,
1160
- 0 ,
1161
1153
) ;
1162
1154
1163
1155
insta:: with_settings!( {
@@ -1202,7 +1194,6 @@ mod tests {
1202
1194
"### ,
1203
1195
3 ,
1204
1196
& dict,
1205
- 0 ,
1206
1197
) ;
1207
1198
1208
1199
insta:: with_settings!( {
@@ -1250,7 +1241,6 @@ mod tests {
1250
1241
"### ,
1251
1242
4 ,
1252
1243
& dict,
1253
- 0 ,
1254
1244
) ;
1255
1245
1256
1246
insta:: with_settings!( {
@@ -1304,7 +1294,6 @@ mod tests {
1304
1294
"### ,
1305
1295
2 ,
1306
1296
& dict,
1307
- 3 , // any non zero turn count value will do
1308
1297
) ;
1309
1298
1310
1299
insta:: with_settings!( {
0 commit comments