- RotateScreen *rs = new RotateScreen();
- screens.push_back(rs);
- rs->add_screen(new GroupScreen(conn, i->tournament, i->round, i->parallel));
+ for (unsigned j = 0; j < i->num_machines; ++j) {
+ RotateScreen *rs = new RotateScreen();
+ screens.push_back(rs);
+ rs->add_screen(new GroupScreen(conn, i->tournament, i->round, i->parallel, j, i->num_machines));
+ }