20 lines
No EOL
439 B
C#
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;
|
|
}
|
|
} |