Lingo, first commit

This commit is contained in:
Jocelyn 2026-08-01 17:21:07 -03:00
commit e5297b3b86
6 changed files with 5817 additions and 0 deletions

20
Lingo/Setup.cs Normal file
View 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;
}
}