class Output @@rank = ['1ST', '2ND', '3RD', '4TH', '5TH', '6TH', '7TH', '8TH', '9TH', '10TH'] def html (var) content = "\n" content << "High Scores\n" content << "\n" content << "\n" content << "\n" content << "

HIGH SCORES

\n" content << "\n" content << "
\n" content << "\n" content << " \n" content << " \n" content << " \n" content << " \n" content << " \n" var.each_with_index { |v, i| content << " \n" content << " \n" content << " \n" content << " \n"} content << " \n" content << "

RANK

SCORE

NAME

#{@@rank[i]}

#{v[1]}

#{v[0]}

\n

CREDIT 0

\n" content << "
\n" content << "\n" content << "" return content end def user_html (var, branches, labels) content = "\n" content << "#{var}\n" content << head_template content << "

#{var}

\n" content << "\n" content << "
\n" content << "\n" content << " \n" content << " \n" content << " \n" content << " \n" content << " \n" content << " \n" content << "
\n" content << "

Branches\n" content << "

\n" content << "

\n" content << "
\n" content << "

Labels\n" content << "

\n" content << "

\n" content << "
\n" content << "
\n" content << "\n" content << "\n" return content end def head_template content = "" content << "" content << "" return content end end