Lingo, first commit
This commit is contained in:
commit
e5297b3b86
6 changed files with 5817 additions and 0 deletions
20
Lingo/Setup.cs
Normal file
20
Lingo/Setup.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace Lingo;
|
||||
|
||||
public static class Setup
|
||||
{
|
||||
static Random rnd = new Random();
|
||||
static string[] words = File.ReadAllLines("words.txt");
|
||||
|
||||
static string wordSelector()
|
||||
{
|
||||
int rand = rnd.Next(0, words.Length);
|
||||
string selectedWord = words[rand];
|
||||
return selectedWord;
|
||||
}
|
||||
|
||||
static string inputWord()
|
||||
{
|
||||
string inputWord = Console.ReadLine();
|
||||
return inputWord;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue