@@ -52,18 +52,35 @@ std::string WriteHTMLFile(const Game &p_game, const GamePlayer &p_rowPlayer,
5252
5353 theHtml += " <table>" ;
5454 theHtml += " <tr>" ;
55- theHtml += " <td></td>" ;
55+ theHtml += " <td colspan=\" 2\" rowspan=\" 2\" ></td>" ;
56+ theHtml += " <td colspan=\" " + std::to_string (p_colPlayer->GetStrategies ().size ()) +
57+ " \" align=\" center\" ><b>" ;
58+ theHtml += p_colPlayer->GetLabel ();
59+ theHtml += " </b></td>" ;
60+ theHtml += " </tr>" ;
61+ theHtml += " <tr>" ;
5662 for (const auto &strategy : p_colPlayer->GetStrategies ()) {
57- theHtml += " <td align=center><b>" ;
63+ theHtml += " <td align=\" center\" ><b>" ;
5864 theHtml += strategy->GetLabel ();
5965 theHtml += " </b></td>" ;
6066 }
6167 theHtml += " </tr>" ;
68+
69+ bool first_row_strategy = true ;
6270 for (const auto &row_strategy : p_rowPlayer->GetStrategies ()) {
6371 const PureStrategyProfile profile = iter;
6472 profile->SetStrategy (row_strategy);
6573 theHtml += " <tr>" ;
66- theHtml += " <td align=center><b>" ;
74+
75+ if (first_row_strategy) {
76+ theHtml += " <td rowspan=\" " + std::to_string (p_rowPlayer->GetStrategies ().size ()) +
77+ " \" align=\" center\" valign=\" middle\" ><b>" ;
78+ theHtml += p_rowPlayer->GetLabel ();
79+ theHtml += " </b></td>" ;
80+ first_row_strategy = false ;
81+ }
82+
83+ theHtml += " <td align=\" center\" ><b>" ;
6784 theHtml += row_strategy->GetLabel ();
6885 theHtml += " </b></td>" ;
6986 for (const auto &col_strategy : p_colPlayer->GetStrategies ()) {
0 commit comments