Lingo, first commit
This commit is contained in:
commit
e5297b3b86
6 changed files with 5817 additions and 0 deletions
10
Lingo/Lingo.csproj
Normal file
10
Lingo/Lingo.csproj
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
9
Lingo/Program.cs
Normal file
9
Lingo/Program.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Lingo;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
5757
Lingo/words.txt
Normal file
5757
Lingo/words.txt
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue