#include "apply.h"
#include "output.h"
#include "mymalloc.h"
+#include "eco.h"
/* Functions for outputting games in the required format. */
int black_elo = atoi(black_elo_tag);
for (move = current_game.moves; move != NULL; move = move->next) {
- unsigned int opening = 0; // TODO
+ unsigned int opening = move->eco ? move->eco->cumulative_hash_value : 0; // Truncate to 32 bits.
// key
putc(move->bpfen_len + strlen((char *)move->move), outputfile);