Untitled
unknown
plain_text
2 years ago
323 B
3
Indexable
void LoadBot(int count) {
ifstream bot("bot.txt");
string line;
int added;
if (count > 250) count = 250;
while (getline(bot, line)) {
if (added >= count) break;
bots.push_back(line);
added++;
}
}
string RefreshBot(int count) {
if (count > 500) count = 500;
return bots[rand() % count / 2];
}
Editor is loading...