9 Replies
so i am coding a hangman game but i cant figure out how to make it so when theres more than one of the same letter it puts the letter in all the places and not the first index it finds
Share the code directly
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/$codegif
But from what you say it seems that you need to modify one of your loops to traverse all letters of the word and check if the letter provided by the user is present on the current loop index
And.your loop should not stop until it reaches the end
yeah i figured it would be something close to that but i have close to no idea how to
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
oh ill work on that
thanks