main.cpp
int spaceFill(char letter, std::string word)
{
	const int len = word.length();
	
	// Check the guess	
	int matches = 0;
	for (int i = 0; i < len; i++) {
		
		// If guess is repeated
		if (letter == fills[i])
			return -1;
		
		// Compare guess
		if (letter == word[i])
		{
			fills[i] = letter;
			matches++;
		}
	}
	
	return matches;
}
/* Converts fills based on guesses. */
Converts fills based on guesses.
Converts fills based on guesses .
int spaceFill(char letter, std::string word)
{
	const int len = word.length();
	int matches = 0;
	for (int i = 0; i < len; i++) {
		if (letter == fills[i])
			return -1;
		if (letter == word[i])
		{
			fills[i] = letter;
			matches++;
		}
	}
	return matches;
}
int spaceFill ( char letter , std :: string word ) { const int len = word . length ( ) ; int matches = 0 ; for ( int i = 0 ; i < len ; i ++ ) { if ( letter == fills [ i ] ) return -1 ; if ( letter == word [ i ] ) { fills [ i ] = letter ; matches ++ ; } } return matches ; }
Converts fills based on guesses.
Converts fills based on guesses .
// Check the guess	
 // If guess is repeated
 // Compare guess
