Add project files.

This commit is contained in:
Dan
2025-05-04 22:09:04 -04:00
parent f89443397b
commit e244e369b6
4 changed files with 55 additions and 0 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"dotnet.defaultSolution": "Guessing Game.sln"
}

22
Guessing Game.sln Normal file
View File

@@ -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

View File

@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>Guessing_Game</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

19
Guessing Game/Program.cs Normal file
View File

@@ -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());