∅:D[
6.2097] → [
3.13455:13534]
B:BD[
7.3090] → [
3.13455:13534]
B:BD[
3.13534] → [
6.2098:2274]
∅:D[
6.2274] → [
3.13627:13673]
B:BD[
3.13627] → [
3.13627:13673]
const info = try std.fmt.allocPrint(
self.state.allocator,
"info score cp {d} depth {d} nodes {d} time {d:.0} nps {d:.0} pv ",
.{ scr, depth, nodes, time, (@intToFloat(f32, nodes) / time) * std.time.ms_per_s },
);
try ret.appendSlice(info);
if (try std.math.absInt(scr) > eval.CHECKMATE_SCORE) {
const info = try std.fmt.allocPrint(
self.state.allocator,
"info score mate {d} depth {d} nodes {d} time {d:.0} nps {d:.0} pv ",
.{ scr, depth, nodes, time, (@intToFloat(f32, nodes) / time) * std.time.ms_per_s },
);
try ret.appendSlice(info);
} else {
const info = try std.fmt.allocPrint(
self.state.allocator,
"info score cp {d} depth {d} nodes {d} time {d:.0} nps {d:.0} pv ",
.{ scr, depth, nodes, time, (@intToFloat(f32, nodes) / time) * std.time.ms_per_s },
);
try ret.appendSlice(info);
}