Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 07-Practice-05.04.2022 / source.cpp
blob: 4b5a7b9fd78bf86855d52878130e94e8a3e41401 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "Player.h"
#include "NumberGamble.h"

int main() {
	Player yorgus("Yorgus", "yorgus", 23, 57741.39);

	char buffer = '\0';
	while (buffer != 'n' && buffer != 'N') {
		numberGamble.play(yorgus);
		std::cout << "Do you want to play again? [y/n] ";
		std::cin >> buffer;
	}
	std::cout << "Your balance: " << yorgus.get_balance() << std::endl;
}