diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..3a8ca08 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "dotnet.defaultSolution": "Guessing Game.sln" +} \ No newline at end of file diff --git a/Guessing Game.sln b/Guessing Game.sln new file mode 100644 index 0000000..e275522 --- /dev/null +++ b/Guessing Game.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Guessing Game", "Guessing Game\Guessing Game.csproj", "{4E23E03A-6D67-42EE-83D3-E7796F9ED797}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4E23E03A-6D67-42EE-83D3-E7796F9ED797}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4E23E03A-6D67-42EE-83D3-E7796F9ED797}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4E23E03A-6D67-42EE-83D3-E7796F9ED797}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4E23E03A-6D67-42EE-83D3-E7796F9ED797}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Guessing Game/Guessing Game.csproj b/Guessing Game/Guessing Game.csproj new file mode 100644 index 0000000..978bb49 --- /dev/null +++ b/Guessing Game/Guessing Game.csproj @@ -0,0 +1,11 @@ + + + + Exe + net8.0 + Guessing_Game + enable + enable + + + diff --git a/Guessing Game/Program.cs b/Guessing Game/Program.cs new file mode 100644 index 0000000..76304e2 --- /dev/null +++ b/Guessing Game/Program.cs @@ -0,0 +1,19 @@ +Console.Title = "Dan's First Guessing Game"; +Console.Clear(); + +// User Entered Data +int maxGuesses; +int lowestNumber; +int highestNumber; +int theGuess; + +// Internal Data +int guessNumber=0; +int randomNumber; + +Console.Write("How many guesses would you like: "); +maxGuesses = Convert.ToInt32(Console.ReadLine()); +Console.Write("What's the lowest number: "); +lowestNumber = Convert.ToInt32(Console.ReadLine()); +Console.Write("What's the lowest number: "); +highestNumber = Convert.ToInt32(Console.ReadLine());