-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
27 lines (21 loc) · 817 Bytes
/
Copy pathProgram.cs
File metadata and controls
27 lines (21 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using WordleSharp.Calculators;
namespace WordleSharp;
internal class Program
{
static async Task Main(string[] args)
{
var wordle = new Wordle();
wordle.SetNextWordCalculator(new CountReductionCalculator(4));
wordle.DisplayCountOnly = false;
var result = await wordle.Analyse();
var columns = typeof(WordleResult).GetProperties().Select(info => info.Name);
Console.WriteLine();
WriteWordleResult(result);
}
private static void WriteWordleResult(WordleResult result)
{
var table = new ConsoleTables.ConsoleTable("StartWord", "Turns", "AttemptedWords", "Answer");
table.AddRow(result.StartWord, result.Turns, result.AttemptedWords, result.Answer);
table.Write(ConsoleTables.Format.Minimal);
}
}