def cancel_dashed(guess, word, answer):
    """
    :param guess: an alphabet, the right guess made by player
    :param word: The word looks like that it hasn't completely been guessed correctly
    :param answer: a word, the correct answer
    :return: The word looks like that some of the word have been replaced by right guess
    """
    ans = ''
    for i in range(len(answer)):
        ans_ch = answer[i]
        ch = word[i]
        if ans_ch == guess:
            # Replace the showing string's dashes if the input_ch is a right guess.
            ans += guess
        else:
            ans += ch
            # Maintain the same word if the input_ch is not right.
    return ans