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 << " RANK | \n"
content << " SCORE | \n"
content << " NAME | \n"
content << "
\n"
var.each_with_index { |v, i|
content << " \n"
content << " #{@@rank[i]} | \n"
content << " #{v[1]} | \n"
content << " #{v[0]} | \n |
\n"}
content << " CREDIT 0 |
\n"
content << "
\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 << " Branches\n"
content << "
\n"
content << " \n"
content << " | \n"
content << "
\n"
content << " \n"
content << " \n"
content << " Labels\n"
content << "
\n"
content << " \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