//Excerpt from game.C, showing the body of game::play. for (; master.size() > 1; term.wait(250)) { for (master_t::const_iterator it = master.begin(); it != master.end();) { wabbit *const p = *it; const bool alive = p->move(); ++it; if (!alive) { //The wabbit that moved in line 8 blundered //into another wabbit and was eaten. delete p; } } } //The following lines go at the end of the destructor for class game. //Delete any remaining wabbit's. for (master_t::const_iterator it = master.begin(); it != master.end();) { wabbit *const p = *it; ++it; delete p; } }