main.cpp
void print(std::string secret, int wrong_guesses, const Engine *game)
{
	int len = secret.length();
	std::string andy;
	
	cout << "Press Enter to continue! ";
	cin.ignore();
	system("cls");
	
	// first run
	if (fills == "")
	{
		andy = game->Sprite(0);
		cout << andy;
		
		for (int i = 0; i < len; i++) fills += "_";
	}
	
	else 
	{
		andy = game->Sprite(wrong_guesses);
		cout << andy;
	}
	
	std::cout << "\n\n\tWORD: ";
	for (int i = 0; i < len; i++)
		std::cout << fills[i] << " ";
	std::cout << "\n\n";
}
/* Prints the spaces and letters on stdout. */
Prints the spaces and letters on stdout.
Prints the spaces and letters on stdout .
void print(std::string secret, int wrong_guesses, const Engine *game)
{
	int len = secret.length();
	std::string andy;
	cout << "Press Enter to continue! ";
	cin.ignore();
	system("cls");
	if (fills == "")
	{
		andy = game->Sprite(0);
		cout << andy;
		for (int i = 0; i < len; i++) fills += "_";
	}
	else 
	{
		andy = game->Sprite(wrong_guesses);
		cout << andy;
	}
	std::cout << "\n\n\tWORD: ";
	for (int i = 0; i < len; i++)
		std::cout << fills[i] << " ";
	std::cout << "\n\n";
}
void print ( std :: string secret , int wrong_guesses , const Engine * game ) { int len = secret . length ( ) ; std :: string andy ; cout << " " ; cin . ignore ( ) ; system ( " " ) ; if ( fills == " " ) { andy = game -> Sprite ( 0 ) ; cout << andy ; for ( int i = 0 ; i < len ; i ++ ) fills += " " ; } else { andy = game -> Sprite ( wrong_guesses ) ; cout << andy ; } std :: cout << " \n \n \t " ; for ( int i = 0 ; i < len ; i ++ ) std :: cout << fills [ i ] << " " ; std :: cout << " \n \n " ; }
Prints the spaces and letters on stdout.
Prints the spaces and letters on stdout .
// first run
