Improved output
This commit is contained in:
1 parent
299bf7b4da
commit
7991b8e8bd
1 file changed
+4
-6
@@ -105,8 +105,7 @@ void Sniper::fire(Target const &t) {
|
||||
order_change.change = OrderChange::added;
|
||||
if (os::is_nan(order_change.order.price.price()))
|
||||
debug_break();
|
||||
LOG(Spartan, Info, "Time: {} Shot: {} Firing order: {}",
|
||||
to_time_string(me->sim->now()), me->current_shot, order_change.order);
|
||||
LOG(Spartan, Info, "Sending order: {}", order_change.order);
|
||||
me->sim->send(order_change);
|
||||
order_change.change = OrderChange::removed;
|
||||
me->sim->send(order_change);
|
||||
@@ -120,7 +119,8 @@ void Sniper::eval_pick_fire() {
|
||||
auto best_target = pick();
|
||||
if (best_target) {
|
||||
LOG(Spartan, Info,
|
||||
"Found mispricing. Value: {}. Firing ------------------",
|
||||
"Time: {} Shot: {} Value: {}. Firing ------------------",
|
||||
to_time_string(me->sim->now()), me->current_shot,
|
||||
best_target.value().value);
|
||||
fire(best_target.value());
|
||||
transition(State::WAIT);
|
||||
@@ -164,8 +164,6 @@ const char *Sniper::state_name(State s) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void Sniper::transition(State new_state) {
|
||||
me->state = new_state;
|
||||
}
|
||||
void Sniper::transition(State new_state) { me->state = new_state; }
|
||||
|
||||
} // namespace bts::spartan::mdp3
|
||||
Reference in new issue
Block a user