function display_results() {
  for (var class_num = 0; class_num < 4; class_num++) {
    var level_set = uniquecounts(data_rows, class_num);
    //When one of the levels become pure
    if (Object.keys(level_set).length == 1) {
      document.getElementById('hiera_' + String(class_num)).innerHTML = Object.keys(level_set)[0];
      document.getElementById('hiera_' + String(class_num)).style.opacity = '1.0';
      if (class_num == 0) {
        end_game();
      }
    } else {
      document.getElementById('hiera_' + String(class_num)).style.opacity = '0.3';
      document.getElementById('hiera_' + String(class_num)).innerHTML = '???';
    }
  }
}
//Display the pure label at a level

Display the pure label at a level
Display the pure label at a level
function display_results() {
  for (var class_num = 0; class_num < 4; class_num++) {
    var level_set = uniquecounts(data_rows, class_num);
    if (Object.keys(level_set).length == 1) {
      document.getElementById('hiera_' + String(class_num)).innerHTML = Object.keys(level_set)[0];
      document.getElementById('hiera_' + String(class_num)).style.opacity = '1.0';
      if (class_num == 0) {
        end_game();
      }
    } else {
      document.getElementById('hiera_' + String(class_num)).style.opacity = '0.3';
      document.getElementById('hiera_' + String(class_num)).innerHTML = '???';
    }
  }
}
function display_results ( ) { for ( var class_num = 0 ; class_num < 4 ; class_num ++ ) { var level_set = uniquecounts ( data_rows , class_num ) ; if ( Object . keys ( level_set ) . length == 1 ) { document . getElementById ( 'hiera_' + String ( class_num ) ) . innerHTML = Object . keys ( level_set ) [ 0 ] ; document . getElementById ( 'hiera_' + String ( class_num ) ) . style . opacity = '1.0' ; if ( class_num == 0 ) { end_game ( ) ; } } else { document . getElementById ( 'hiera_' + String ( class_num ) ) . style . opacity = '0.3' ; document . getElementById ( 'hiera_' + String ( class_num ) ) . innerHTML = '???' ; } } }
Display the pure label at a level
Display the pure label at a level
//When one of the levels become pure
