# My triplex game so far

``````#include <iostream>

int main(){
{//introduction
std::cout << "Hello welcome to triplex  "; std::cout << std::endl;
std::cout << "This is a game all about numbers and math"; std::cout << std::endl;
std::cout <<"The objective of this game is to complete each level by typing in the number/numbers that solve each equation"; std::cout << std::endl;
}
{//hints
//variables
int AmountOfGusses = 5;
//operations
std::cout << std::endl;
std::cout << "There are three numbers in the answer." << std :: endl;

int Guess1, Guess2, Guess3; int GuessSum, GuessProduct;
std :: cin >> Guess1;
std :: cin >> Guess2;
std :: cin >> Guess3;
GuessSum = Guess1 + Guess2 + Guess3;
GuessProduct = Guess1 * Guess2 * Guess3 ;
if ( AmountOfGusses == 0)
{
return 0;
}
else{
{
std::cout<<"Correct";
}
else{
AmountOfGusses = AmountOfGusses - 1;
std::cout<<"Wrong try again"<<std::endl;
std::cout<<"Guesses remain:"<<AmountOfGusses<<std::endl;
std :: cin >> Guess1;
std :: cin >> Guess2;
std :: cin >> Guess3;
GuessSum = Guess1 + Guess2 + Guess3;
GuessProduct = Guess1 * Guess2 * Guess3 ;    if (GuessSum == AnswerSum && GuessProduct == AnswerProduct);
if ( AmountOfGusses == 0)
{
return 0;
}
else{
{
std::cout<<"Correct";
}
else{
AmountOfGusses = AmountOfGusses - 1;
std::cout<<"Wrong try again"<<std::endl;
std::cout<<"Guesses remain:"<<AmountOfGusses<<std::endl;
std :: cin >> Guess1;
std :: cin >> Guess2;
std :: cin >> Guess3;
GuessSum = Guess1 + Guess2 + Guess3;
GuessProduct = Guess1 * Guess2 * Guess3 ;
if ( AmountOfGusses == 0)
{
return 0;
}
else{
{
std::cout<<"Correct";
}
else{
AmountOfGusses = AmountOfGusses - 1;
std::cout<<"Wrong try again"<<std::endl;
std::cout<<"Guesses remain:"<<AmountOfGusses<<std::endl;
std :: cin >> Guess1;
std :: cin >> Guess2;
std :: cin >> Guess3;
GuessSum = Guess1 + Guess2 + Guess3;
GuessProduct = Guess1 * Guess2 * Guess3 ;    if (GuessSum == AnswerSum && GuessProduct == AnswerProduct);
if ( AmountOfGusses == 0)
{
return 0;
}
else{
{
std::cout<<"Correct";
}
else{
AmountOfGusses = AmountOfGusses - 1;
std::cout<<"Wrong try again"<<std::endl;
std::cout<<"Guesses remain:"<<AmountOfGusses<<std::endl;
std :: cin >> Guess1;
std :: cin >> Guess2;
std :: cin >> Guess3;
GuessSum = Guess1 + Guess2 + Guess3;
GuessProduct = Guess1 * Guess2 * Guess3 ;
if ( AmountOfGusses == 0)
{
return 0;
}
else{
{
std::cout<<"Correct";
}
else{
AmountOfGusses = AmountOfGusses - 1;
std::cout<<"Wrong try again"<<std::endl;
std::cout<<"Guesses remain:"<<AmountOfGusses<<std::endl;
if ( AmountOfGusses == 0)
{
{std::cout<<"You ran out of Gusses. Game Over";}

return 0;

}
else
std :: cin >> Guess1;
std :: cin >> Guess2;
std :: cin >> Guess3;
GuessSum = Guess1 + Guess2 + Guess3;
GuessProduct = Guess1 * Guess2 * Guess3 ;
if ( AmountOfGusses == 0)
{
{std::cout<<"You ran out of Gusses. Game Over";}

return 0;

}
else{
{
std::cout<<"Correct";
}
else{
AmountOfGusses = AmountOfGusses - 1;
std::cout<<"Wrong try again"<<std::endl;
std::cout<<"Guesses remain:"<<AmountOfGusses<<std::endl;
std :: cin >> Guess1;
std :: cin >> Guess2;
std :: cin >> Guess3;
GuessSum = Guess1 + Guess2 + Guess3;
GuessProduct = Guess1 * Guess2 * Guess3 ;
}}
}
}
}
}
}
}
}
}
}
}}

return 0;}`````````