Need help w/ adding my own features to Bull Cow Game

So I am trying to implement a difficulty system, one where the player enters a value (1, 2, or 3) and that value determines how many lives the player has and how long the words are. However, I stumbled upon an issue where the words are set to 0 characters and I cannot figure out why.

Here is my code:

(BullCowCartridge.cpp)

(BullCowCartridge.h)

(HiddenWordList.h)

My Current Outcome:

Additional Question: What better ways is there to share my code? I have seen others just link the whole script or something like that, but I do not know how to do that.

Thank you.

What 7-8 letter isograms do you have in that list?

You can indent the text by 4 or wrap the contents in 3 back ticks to have a code block e.g.

[space][space][space][space]code
[space][space][space][space]code

or

```
code
```

1 Like

There is multiple 7-8 letter isograms, here are a few:

“behavior”
“certain”
“daughter”

I also get the same outcome when I type “2” or “1” as the difficulty


I just figured out the issue, when I was checking the player input I never ended up preparing the game. There is still some issues. I also changed “Player Input” to “Guess” when checking what the player said and based on that adding a difficulty.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms