#include <iostream>
void PrintIntroduction()
{
// Print welcome messages to the terminal
std::cout << std::endl;
std::cout << "___________________________AAAAAA\n";
std::cout << "_______________________AAAAAcceeAA\n";
std::cout << "_____________________AAAcccceeaaAA\n";
std::cout << "_________________AAAAAcccceeaaaAA\n";
std::cout << "_____________AAAAAcccccceeaaaaAA\n";
std::cout << "__AAAAAAAAAAAAcccccceeaaaaaaaAA\n";
std::cout << "AAAccccccccccccceeaaaaaaaaaaAA\n";
std::cout << "__AAAaaaaaaaeeceeeeeaaaaaagAA\n";
std::cout << "____AAAAAAaaaaaaaaeeeeeeagAA\n";
std::cout << "________AAAAAAAAaaaaaaeeeggAA\n";
std::cout << "_________#######AAAAAaaaagggAA\n";
std::cout << "________###| |########AAaaaagggAA\n";
std::cout << "______AA###|_|###| tr|#####AAAaaggggAA\n";
std::cout << "____AAEE#########|_|########AAAAgggAA\n";
std::cout << "__AAEEAA#################EEEEEAAAAA\n";
std::cout << "__AAEEEEEE#########EEEEEEEEAAEAA\n";
std::cout << "__AAAAEEEEEEEEEEEEAAAAAAEEEEEAA\n";
std::cout << "_A§xxxAAEEEEEEAAAAEEEEEEEEEEEEAA\n";
std::cout << "_A§xxxAAEEEEAAAAAAEEEEEEEEEEEEAA\n";
std::cout << "__AAAAEEEEEE§xxxAAEEEEEEEEEEEEAA\n";
std::cout << "__AAEEAAEEEE§xxxAAEEEEEEEEEEEEAA\n";
std::cout << "__AAEEAAEEEEAAAAAAEEEEEEEEEEAA\n";
std::cout << "__AAEEEAAEEEEEEEEEAAEEEEEEEEAA\n";
std::cout << "__AAEEEEAAAEEEEEEEAAEEEEEEEEAA\n";
std::cout << "_AAEEEEEEEAAAAAAEEEEAAEEEEAAEEAA\n";
std::cout << "AAEEEEEEEEEEEEEEEEEEEEAAAAEEEEEEAA\n";
std::cout << "_AAAAAAAAAAAAAAAAAAAAA____AAAAAAA\n";
std::cout << "\nWelcome to the world of Mathemon.\n";
std::cout << "Enter the three mathemagical numbers to continue...\n";
}
void PlayGame()
{
PrintIntroduction();
// Declare mathemagical numbers
const int CodeA = 4;
const int CodeB = 2;
const int CodeC = 1;
const int CodeSum = CodeA + CodeB + CodeC;
const int CodeProduct = CodeA * CodeB * CodeC;
// Print CodeSum and CodeProduct to the terminal
std::cout << std::endl;
std::cout << "- There are three numbers.";
std::cout << "\n- They add up to: " << CodeSum;
std::cout << "\n- They mutiply to give: " << CodeProduct << "\n";
// Store player guess
int GuessA, GuessB, GuessC;
std::cin >> GuessA >> GuessB >> GuessC;
int GuessSum = GuessA + GuessB + GuessC;
int GuessProduct = GuessA * GuessB * GuessC;
// Check if the player guess is corect
if (GuessSum == CodeSum && GuessProduct == CodeProduct)
{
std::cout << "\nYou've chosen the correct Mathematemons!";
}
else
{
std::cout << "\nYou've chosen poorly and have angered the Mathemategods!";
}
}
int main()
{
PlayGame();
return 0;
}