+ c.set_sum_white_elo(c.sum_white_elo() + e.white_elo);
+ c.set_sum_black_elo(c.sum_black_elo() + e.black_elo);
+ c.set_num_elo(c.num_elo() + 1);
+ }
+ if (!c.has_first_timestamp() || e.timestamp < c.first_timestamp()) {
+ if (e.timestamp != DUMMY_TIMESTAMP) {
+ c.set_first_timestamp(e.timestamp);
+ }
+ c.set_opening_num(e.opening_num);
+ c.set_pgn_file_num(e.file_num);
+ c.set_pgn_start_position(e.start_position);
+ }
+ if (!moves.count(e.move)) {
+ moves.insert(e.move);
+ c.add_move(e.move);