void winrar(char name, unsigned int moves) { ofstream scores; scores.open("winners.txt", ios::app); if(scores.is_open()) cout << "Scores sucessfully saved!"; else cout << "Unable to open file winners.txt!"; scores << "Player " << name << " defeated the opponent in " << moves << " moves"; scores.close(); return 0; } //DEFINE FSTREAM.H!!!!