Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <windows.h>
- #include <clocale>
- #include <ctime>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Russian");
- srand(time(0));
- cout << "Добро пожаловать на ASINO777";
- int balance = 100;
- int stavka = 0;
- while (balance > 0)
- {
- cout << "\nBALANCE :" << balance << endl;
- cout << "Сколько денег вам не надо :";
- cin >> stavka;
- if (stavka > balance || stavka < 0)
- {
- Beep(698, 500);
- Sleep(100);
- cout << "Тут так не работает" << endl;
- continue;
- }
- while (rand() % 100 > 5)
- {
- Sleep(rand() % 200);
- cout << ".";
- }
- int a = rand() % 10;
- int b = rand() % 10;
- int c = rand() % 10;
- cout << endl<<"==" << a << ":" << b << ":" << c << "==" << endl<<endl<<endl;
- if (a == b && b == c)
- {
- Beep(784, 500);
- Sleep(500);
- cout << "МОЛОДЕЦ!!\n";
- balance += stavka * 3 * a;
- }
- else
- {
- if (a == b || b == c || a == c) {
- Beep(523, 500);
- Sleep(500);
- cout << "СОЙДЕТ\n";
- balance += stavka * a == b ? a : c;
- }
- else if ((a == b) && (a == c) && (a == 7)) {
- Beep(587, 500);
- Sleep(500);
- cout << "КРАСАВЧИК!!\n";
- balance += stavka * a * a * 10;
- }
- else if (!(a * b * c)) {
- Beep(698, 500);
- Sleep(500);
- cout << "НОЛЬ В ПОМОЩЬ\n";
- }
- else {
- Beep(440, 500);
- Sleep(500);
- cout << "НЕ ПОВЕЗЛО :(\n";
- balance -= stavka;
- }
- }
- if (balance == 0) {
- cout << "Ты все проиграл, друг... Приходи после зарплаты" << endl<<endl;
- }
- else {
- cout << "Ваш баланс: " << balance << endl;
- }
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement