Lingo_New/Lingo/Setup.cs
2026-08-02 15:24:27 -03:00

20 lines
No EOL
439 B
C#

namespace Lingo;
public static class Setup
{
static Random rnd = new Random();
static string[] words = File.ReadAllLines("words.txt");
public static string wordSelector()
{
int rand = rnd.Next(0, words.Length);
string selectedWord = words[rand];
return selectedWord;
}
public static string inputWord()
{
string inputWord = Console.ReadLine();
return inputWord;
}
}