Fixed spaces in hangman/trivia hints
This commit is contained in:
parent
011309956b
commit
a88f056935
@ -63,14 +63,13 @@ namespace NadekoBot.Modules.Games.Commands.Hangman
|
||||
public uint MaxErrors { get; } = 6;
|
||||
public uint MessagesSinceLastPost { get; private set; } = 0;
|
||||
public string ScrambledWord => "`" + String.Concat(Term.Word.Select(c =>
|
||||
{
|
||||
if (!(char.IsLetter(c) || char.IsDigit(c)))
|
||||
{
|
||||
if (c == ' ')
|
||||
return " \u2000";
|
||||
if (!(char.IsLetter(c) || char.IsDigit(c)))
|
||||
return $" {c}";
|
||||
|
||||
c = char.ToUpperInvariant(c);
|
||||
|
||||
if (c == ' ')
|
||||
return " ";
|
||||
return Guesses.Contains(c) ? $" {c}" : " _";
|
||||
})) + "`";
|
||||
|
||||
|
@ -98,7 +98,7 @@ namespace NadekoBot.Modules.Games.Trivia
|
||||
if (letters[i] != ' ')
|
||||
letters[i] = '_';
|
||||
}
|
||||
return string.Join(" \x200B", new string(letters).Replace(" ", " \x200B").AsEnumerable());
|
||||
return string.Join(" ", new string(letters).Replace(" ", " \u2000").AsEnumerable());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user