2
I’m developing a hangman’s game, but I found a problem, I can’t replace the character ã.
Follows the code:
local done = false
local words = {
"bola", "casa", "avião"
}
local randomWord = words[math.random(#words)]
while not done do
print(randomWord)
print(string.gsub(randomWord, "%a", "_"))
done = true
end
Result: -ã-