#include "person.h"
#include <string>
#include <iostream>
#include "number.h"
#include <fstream>
#include "text.h"


using namespace std;

int main(int argc, char** argv)
{
	text* text1 = new text();
	cout << text1->getRules() << endl; //points to the text ccp file with the starting text

	string name1;
	 
	person* person1 = new person(); // points to the person ccp file where it asks the name with a cin command and returns it here
	
	

	cout << person1->GetName() << "Your first so your player 1 and here are your numbers " << endl << endl; //cin returns name
	
	
	number* number1 = new number();
	
	cout << number1->GetNumber() << endl; //gains a new random number from the number ccp file where after 6 time will show the total obtained 
	cout << number1->GetNumber() << endl;
	cout << number1->GetNumber() << endl;
	cout << number1->GetNumber() << endl;
	cout << number1->GetNumber() << endl;
	cout << number1->GetNumber() << endl;
	cout << "ok now player2!" << endl << endl;

	cout << person1->GetName() << "  your player 2 and here are your numbers " << endl << endl;

	cout << number1->GetNumber() << endl;
	cout << number1->GetNumber() << endl;
	cout << number1->GetNumber() << endl;
	cout << number1->GetNumber() << endl;
	cout << number1->GetNumber() << endl;
	cout << number1->GetNumber() << endl;
	
	
	cout << text1->winner() << endl; // points to te text ccp file where it has an if statment where i wll ask the user who won and ether congratulate them or announce it was a draw 
	
	return 0;
}
