diff --git a/Lingo/PlayGame.cs b/Lingo/PlayGame.cs index 8032747..079b14f 100644 --- a/Lingo/PlayGame.cs +++ b/Lingo/PlayGame.cs @@ -4,17 +4,28 @@ using Spectre.Console; public class PlayGame { + public string CurrentAnswer { get; private set; } + public string CurrentBoard { get; private set; } + + string Solution = ChooseWord(); + public void Attempt() + { + AnsiConsole.MarkupLine($"[white on black]Enter your guess[/]"); + + CurrentAnswer = Console.ReadLine().Trim(); + + WordCorrect(CurrentAnswer); + + string ToAddToBoard = WordValidation(Solution, CurrentAnswer); + + CurrentBoard = CurrentBoard + ToAddToBoard(CurrentAnswer); + + + } + public PlayGame() { - GameData game = new GameData(); - while (game.GamePlaying) - { - AnsiConsole.MarkupLine($"[white on black]Enter your guess[/]"); - - public string CurrentBoard = $"[white on black]Enter your guess[/]\n"; - - - } + GameData game = new GameData(); } diff --git a/Lingo/SpectreView.cs b/Lingo/SpectreView.cs new file mode 100644 index 0000000..1749b2b --- /dev/null +++ b/Lingo/SpectreView.cs @@ -0,0 +1,6 @@ +namespace Lingo; + +public class SpectreView +{ + +} \ No newline at end of file diff --git a/Lingo/WordCorrect.cs b/Lingo/WordCorrect.cs new file mode 100644 index 0000000..73341f3 --- /dev/null +++ b/Lingo/WordCorrect.cs @@ -0,0 +1,6 @@ +namespace Lingo; + +public class WordCorrect +{ + +} \ No newline at end of file diff --git a/Lingo/WordValidation.cs b/Lingo/WordValidation.cs new file mode 100644 index 0000000..67c2c09 --- /dev/null +++ b/Lingo/WordValidation.cs @@ -0,0 +1,6 @@ +namespace Lingo; + +public class WordValidation +{ + +} \ No newline at end of file diff --git a/Lingo/WordVerification.cs b/Lingo/WordVerification.cs new file mode 100644 index 0000000..7de8eeb --- /dev/null +++ b/Lingo/WordVerification.cs @@ -0,0 +1,6 @@ +namespace Lingo; + +public class WordVerification +{ + +} \ No newline at end of file