diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -296,11 +296,17 @@ static void playMatch(Player &p1, Player &p2, int index, const Params ¶ms) { throw StopCompetitionError(); } + for (const auto &p : referee.playerWriteLines()) { + assert(0 <= p.first && p.first < 2); + procs[p.first].writeLine(p.second); + } + if (referee.gameEnded()) { mres.status = MatchResult::Status::ok; optional<vector<int>> oscores = referee.getScores(); assert(oscores); + assert(oscores->size() == 2); mres.sc1 = oscores->at(0); mres.sc2 = oscores->at(1); |