HiddenWord.Length and .Size not Working

Hi Guys,

Issue with the getting the word length back. All I get is 0. code was identical to Ben’s but to no avail unfortunately.

I tried replacing MyHiddenWord.Length with MyHiddenWord.Size to see if I got a value back and unfortunately no. I then tried .Capacity and did receive a value back but this is obviously not what I want. A standalone num such as 5 also worked fine in place of the MyHiddenWord.Length. I also tried to cout the length of the word and that was also zero.

I am at a loss as .Length clearly works as the Bull and Cow’s are getting fed back correctly.

The code is below any help or insight would be greatly appreciated Thanks.

Cap
Capture

Any Help would be Greatly appreciated.

1 Like

After Examining my Code I realized the main issue was I was calling the intro before PlayGame which calls reset and set the values of HiddenWord and Tries etc. :sweat_smile:

1 Like

Hi @Michael_Dennis_Payne,

glad to hear that the issued is solved. Don’t forget to mark the post as ‘solved’. :wink:

Cheers
Kevin

Privacy & Terms