BullCow Extra Credit - 'Buy a hint'

I added a hint option for the hidden word at the cost of a life.

 Hint(FMath::RandRange(1,10));


void UBullCowCartridge::Hint(int32 Level) const{

    TCHAR Letter = HiddenWord[FMath::RandRange(0,HiddenWord.Len()-1)];
    
    switch(Level){
        case 1:
            PrintLine(TEXT("[The hidden word is %i letters long]"),HiddenWord.Len());
            break;
        case 2:
            PrintLine(TEXT("[The hidden word is an isogram]"));
            break;
        default:
            PrintLine(TEXT("[The hidden word contains one %c ]"),Letter);
    }
 
}
1 Like

What a great idea - so, of course I am going to copy it. Though if the word is:

  • dermatoglyphics

I mightn’t help much :smiley:.

I am trying to make one myself

hey how did you record input did you force it upon the player or was it an option

Privacy & Terms