#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
cout << " ###### ###### # # " <<endl;
cout << " # # # # " <<endl;
cout << " ###### # ###### " <<endl;
cout << " # # # " <<endl;
cout << " ###### # # " <<endl;
cout<<endl;
cout<<endl;
string name1, name2 , Start ;
int age1, age2,luc[12];
cout << "You are welcome to our luck game "<< endl;
cout <<"Press the number one to start the game...:)"<< endl; cin>>Start;
cout << "player (1) Enter your name" << endl; cin >> name1;
cout << "player (1) Enter your age" << endl; cin >> age1;
cout << "player (2) Enter your name" << endl; cin >> name2;
cout << "player (2) Enter your age" << endl; cin >> age2;
if (age1 <= 10 || age2 <= 10) {return 0;}
system("CLS");
srand((unsigned)time(0));
int list[12];
int sum = 0;
for (int z = 0; z <= 11; z++)
{list[z] = rand() % 20 + 1;}
for (int y = y; y <= 11; y++)
{cout << list[y] << endl;
sum = sum + list[y];}
int ts = 0;
for (int i = 0; i <= 11; i++)
{luc[i] = rand() % 20 + 1;}
for (int x = 0; x <= 11; x++){
cout << luc[x] << endl;
ts = ts + luc[x];
}
system("CLS");
cout << list[0] << "|" << list[1] << "|" << list[2] << endl;
cout << list[3] << "|" << list[4] << "|" << list[5] << endl;
cout << list[6] << "|" << list[7] << "|" << list[8] << endl;
cout << list[9] << "|" << list[10] <<"|" << list[11] << endl;
cout<<"\n";
cout << "the sum player 1 is:" << sum << endl;
cout<<"\n";
cout << luc[0] << "|" << luc[1] << "|" << luc[2] << endl;
cout << luc[3] << "|" << luc[4] << "|" << luc[5] << endl;
cout << luc[6] << "|" << luc[7] << "|" << luc[8] << endl;
cout << luc[9] << "|" << luc[10] <<"|" << luc[11] << endl;
cout<<"\n";
cout << "the sum player 2 is:" << ts << endl;
if(sum>ts){
cout<<"\n";
cout<<"the player 1 is the winner"<<endl;}
else{
cout<<"\n";
cout<<"the player 2 is the winner"<<endl; }
cin.get();
cin.get();}