diff --git a/MathGame/Game.cs b/MathGame/Game.cs new file mode 100644 index 00000000..325149e6 --- /dev/null +++ b/MathGame/Game.cs @@ -0,0 +1,6 @@ +namespace MathGame; + +public class Game(int score) { + public int _score { get; } = score; + public DateTime _timestamp { get; } = DateTime.Now; +} diff --git a/MathGame/HistoryManager.cs b/MathGame/HistoryManager.cs new file mode 100644 index 00000000..6faff1d1 --- /dev/null +++ b/MathGame/HistoryManager.cs @@ -0,0 +1,21 @@ +using CSharpCasino.Utils; + +namespace MathGame; + +public class HistoryManager { + private List Games { get; } = []; + private readonly IoConsole _console = new(); + + public void AppendGame(Game game) { + Games.Add(game); + } + + public void PrintHistory() { + foreach (Game game in Games) { + _console.PrintColored(AnsiColor.Auto, "//////////////////////////////\n" + + $"{game._timestamp}\nScore: {game._score}\n" + + "//////////////////////////////\n"); + } + } + +} diff --git a/MathGame/MathGame.csproj b/MathGame/MathGame.csproj new file mode 100644 index 00000000..2f4fc776 --- /dev/null +++ b/MathGame/MathGame.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/MathGame/Program.cs b/MathGame/Program.cs new file mode 100644 index 00000000..f63e280f --- /dev/null +++ b/MathGame/Program.cs @@ -0,0 +1,48 @@ +using CSharpCasino.Utils; + +namespace MathGame; + +/* + * Requirements + + - Must consist of asking the player what's the result of a math question (i.e. 9 x 9 = ?), + collecting the input and adding a point in case of a correct answer. + - A game needs to have at least 5 questions + - Integer division only + - Users should be presented with a menu to choose an operation + - You should record previous games in a List + - There should be an option in the menu for the user to visualize a history of previous games + - Once the program is closed the results will be deleted + */ + +class MathGame() { + private static readonly IoConsole Console = new(); + private static readonly HistoryManager History = new(); + + public static void Main() { + Run(); + } + + private static void Run() { + while (true) { + string answer = Console.GetValidInput("Select an option:\nH: history\nP: play game\nE: exit", + ["h", "p", "e"]); + + switch (answer) { + case "h": + History.PrintHistory(); + break; + case "p": + Quiz quiz = new(); + History.AppendGame(quiz.PlayGame()); + break; + case "e": + Environment.Exit(0); + break; + default: + Console.PrintError("Invalid response"); + break; + } + } + } +} diff --git a/MathGame/Quiz/Question.cs b/MathGame/Quiz/Question.cs new file mode 100644 index 00000000..4b96df49 --- /dev/null +++ b/MathGame/Quiz/Question.cs @@ -0,0 +1,6 @@ +namespace MathGame; + +public class Question(string problem, int answer) { + public readonly string Problem = problem; + public readonly int Answer = answer; +} diff --git a/MathGame/Quiz/QuestionManager.cs b/MathGame/Quiz/QuestionManager.cs new file mode 100644 index 00000000..08f5ce71 --- /dev/null +++ b/MathGame/Quiz/QuestionManager.cs @@ -0,0 +1,29 @@ +namespace MathGame; + +public static class QuestionManager { + public static Question[] CreateQuestion(char op) { + Question[] questions = new Question[5]; + int minRand = op is '-' or '+' ? 50 : 5; + int maxRand = op is '-' or '+' ? 100 : 10; + + for (int i = 0; i < 5; i++) { + int num1 = Random.Shared.Next(minRand, maxRand); + int num2 = Random.Shared.Next(1, num1); + + if (op == '/') { + questions[i] = new Question($"{num1 * num2} {op} {num1}", num2); + } else { + int answer = op switch { + '+' => num1 + num2, + '-' => num1 - num2, + '*' => num1 * num2, + _ => 0 + }; + + questions[i] = new Question($"{num1} {op} {num2}", answer); + } + } + + return questions; + } +} diff --git a/MathGame/Quiz/Quiz.cs b/MathGame/Quiz/Quiz.cs new file mode 100644 index 00000000..1234383e --- /dev/null +++ b/MathGame/Quiz/Quiz.cs @@ -0,0 +1,34 @@ +namespace MathGame; + +public class Quiz { + private int _score; + private readonly IoConsole _console = new(); + + private void HandleQuestion(Question question) { + Console.WriteLine(question.Problem); + int answer = _console.GetIntInput("Your answer: "); + + if (question.Answer == answer) { + _score++; + } + } + + public Game PlayGame() { + string op = _console.GetValidInput("Enter a operator: + - * /", ["+", "-", "*", "/"]); + + Question[] questions = op switch { + "+" => QuestionManager.CreateQuestion('+'), + "-" => QuestionManager.CreateQuestion('-'), + "*" => QuestionManager.CreateQuestion('*'), + "/" => QuestionManager.CreateQuestion('/'), + _ => [] + }; + + foreach (Question question in questions) { + HandleQuestion(question); + } + + Console.WriteLine($"Congrats your score was {_score}"); + return new Game(_score); + } +} diff --git a/MathGame/Utils/AnsiColor.cs b/MathGame/Utils/AnsiColor.cs new file mode 100644 index 00000000..08a46c67 --- /dev/null +++ b/MathGame/Utils/AnsiColor.cs @@ -0,0 +1,37 @@ +namespace CSharpCasino.Utils; + +public enum AnsiColor +{ + Auto, + Black, + Red, + Green, + Yellow, + Blue, + Purple, + Cyan, + White +} + +public static class AnsiColorExtension +{ + public static string GetCode(this AnsiColor color) + { + return color switch + { + AnsiColor.Auto => "\u001B[0m", + AnsiColor.Black => "\u001B[30m", + AnsiColor.Red => "\u001B[31m", + AnsiColor.Green => "\u001B[32m", + AnsiColor.Yellow => "\u001B[33m", + AnsiColor.Blue => "\u001B[34m", + AnsiColor.Purple => "\u001B[35m", + AnsiColor.Cyan => "\u001B[36m", + AnsiColor.White => "\u001B[37m", + + // Default + _ => throw new ArgumentOutOfRangeException(nameof(color), color, + $"{color} is not a valid {nameof(AnsiColor)}") + }; + } +} \ No newline at end of file diff --git a/MathGame/Utils/IOConsole.cs b/MathGame/Utils/IOConsole.cs new file mode 100644 index 00000000..5fdd7bc2 --- /dev/null +++ b/MathGame/Utils/IOConsole.cs @@ -0,0 +1,162 @@ +using CSharpCasino.Utils; +using System.Globalization; + +namespace MathGame; + +public class IoConsole(AnsiColor color) +{ + private readonly AnsiColor _color = color; + + public IoConsole() : this(AnsiColor.Auto) // Calls Constructor with color parameter + { + } + + public void PrintColored(AnsiColor color, string message) + { + Console.WriteLine($"{color.GetCode()}{message}{AnsiColor.Auto.GetCode()}"); + } + + private void PrintColored(string message) + { + Console.WriteLine($"{_color.GetCode()}{message}{AnsiColor.Auto.GetCode()}"); + } + + public void PrintError(string message) + { + PrintColored(AnsiColor.Red, message); + } + + public void PrintSuccess(string message) + { + PrintColored(AnsiColor.Green, message); + } + + private string RepromptInput(string prompt, string message) + { + PrintError($"{message}. Please try again"); + return GetStringInput(prompt); + } + + private static bool CheckForExit(string input) + { + return input.ToLower() == "exit"; + } + + public string GetStringInput(string prompt) + { + PrintColored(prompt); + string? input = Console.ReadLine(); + + while (input == null) + { + input = RepromptInput(prompt, "Invalid Input"); + } + + if (CheckForExit(input)) + { + Environment.Exit(0); + } + + return input; + } + + public double GetDoubleInput(string prompt) + { + string input = GetStringInput(prompt); + double doubleInput; + + while (!double.TryParse(input, out doubleInput)) + { + input = RepromptInput(prompt, $"{input} is not a valid decimal number"); + } + + return doubleInput; + } + + private float GetFloatInput(string prompt) + { + string input = GetStringInput(prompt); + float floatInput; + + while (!float.TryParse(input, out floatInput)) + { + input = RepromptInput(prompt, "Number is not a valid float"); + } + + return floatInput; + } + + public int GetIntInput(string prompt) + { + string input = GetStringInput(prompt); + int intInput; + + while (!int.TryParse(input, out intInput)) + { + input = RepromptInput(prompt, "Number is not an integer"); + } + + return intInput; + } + + public bool GetBooleanInput(string prompt) + { + string input = GetStringInput(prompt); + bool booleanInput; + + while (!bool.TryParse(input, out booleanInput)) + { + input = RepromptInput(prompt, "Input is not a boolean"); + } + + return booleanInput; + } + + public bool GetYesNoInput(string prompt) + { + string[] acceptedInputs = ["yes", "no", "y", "n"]; + string input = GetValidInput(prompt, acceptedInputs).ToLower(); + + if(input == "yes" || input == "y") + { + return true; + } + + return false; + } + + private static int CountDigitsAfterDecimal(float input) { + string inputAsString = input.ToString(CultureInfo.InvariantCulture); + + return !inputAsString.Contains('.') ? 0 : inputAsString.Split(".")[1].Length; + } + + public float GetMonetaryInput(string prompt) + { + float input = GetFloatInput(prompt); + int digitsAfterDecimal = CountDigitsAfterDecimal(input); + + while(digitsAfterDecimal > 2 || input < 0) + { + PrintError("Invalid monetary input"); + input = GetFloatInput("Please try again"); + digitsAfterDecimal = CountDigitsAfterDecimal(input); + } + + return input; + } + + public string GetValidInput(string prompt, string[] validOptions) + { + string input = GetStringInput(prompt); + + + while(!validOptions.Contains(input)) + { + PrintError("Invalid input. Please enter a valid input"); + input = GetStringInput(prompt); + } + + return input; + } +} diff --git a/MathGame/bin/Debug/net8.0/MathGame b/MathGame/bin/Debug/net8.0/MathGame new file mode 100755 index 00000000..7ca2fede Binary files /dev/null and b/MathGame/bin/Debug/net8.0/MathGame differ diff --git a/MathGame/bin/Debug/net8.0/MathGame.deps.json b/MathGame/bin/Debug/net8.0/MathGame.deps.json new file mode 100644 index 00000000..a99379af --- /dev/null +++ b/MathGame/bin/Debug/net8.0/MathGame.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "MathGame/1.0.0": { + "runtime": { + "MathGame.dll": {} + } + } + } + }, + "libraries": { + "MathGame/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/MathGame/bin/Debug/net8.0/MathGame.dll b/MathGame/bin/Debug/net8.0/MathGame.dll new file mode 100644 index 00000000..094318f5 Binary files /dev/null and b/MathGame/bin/Debug/net8.0/MathGame.dll differ diff --git a/MathGame/bin/Debug/net8.0/MathGame.pdb b/MathGame/bin/Debug/net8.0/MathGame.pdb new file mode 100644 index 00000000..526c4f0d Binary files /dev/null and b/MathGame/bin/Debug/net8.0/MathGame.pdb differ diff --git a/MathGame/bin/Debug/net8.0/MathGame.runtimeconfig.json b/MathGame/bin/Debug/net8.0/MathGame.runtimeconfig.json new file mode 100644 index 00000000..becfaeac --- /dev/null +++ b/MathGame/bin/Debug/net8.0/MathGame.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfo.cs b/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfo.cs new file mode 100644 index 00000000..4bf4f757 --- /dev/null +++ b/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("MathGame")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ae5a21b83cc2f472c5cfedf8f90212bad78dd290")] +[assembly: System.Reflection.AssemblyProductAttribute("MathGame")] +[assembly: System.Reflection.AssemblyTitleAttribute("MathGame")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfoInputs.cache b/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfoInputs.cache new file mode 100644 index 00000000..8bb3fa2c --- /dev/null +++ b/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +d79d5923c1db5d2cd3f3cd5f8da851360112d9944735f392ca2822be1a963ff0 diff --git a/MathGame/obj/Debug/net8.0/MathGame.GeneratedMSBuildEditorConfig.editorconfig b/MathGame/obj/Debug/net8.0/MathGame.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 00000000..40fa3a57 --- /dev/null +++ b/MathGame/obj/Debug/net8.0/MathGame.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = MathGame +build_property.ProjectDir = /home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/MathGame/obj/Debug/net8.0/MathGame.GlobalUsings.g.cs b/MathGame/obj/Debug/net8.0/MathGame.GlobalUsings.g.cs new file mode 100644 index 00000000..8578f3d0 --- /dev/null +++ b/MathGame/obj/Debug/net8.0/MathGame.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/MathGame/obj/Debug/net8.0/MathGame.assets.cache b/MathGame/obj/Debug/net8.0/MathGame.assets.cache new file mode 100644 index 00000000..576d74d9 Binary files /dev/null and b/MathGame/obj/Debug/net8.0/MathGame.assets.cache differ diff --git a/MathGame/obj/Debug/net8.0/MathGame.csproj.CoreCompileInputs.cache b/MathGame/obj/Debug/net8.0/MathGame.csproj.CoreCompileInputs.cache new file mode 100644 index 00000000..00aa387b --- /dev/null +++ b/MathGame/obj/Debug/net8.0/MathGame.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +0971bf689fd03e105ab03c5fddb627dc154201ea9e204f91f6f829f12eef5471 diff --git a/MathGame/obj/Debug/net8.0/MathGame.csproj.FileListAbsolute.txt b/MathGame/obj/Debug/net8.0/MathGame.csproj.FileListAbsolute.txt new file mode 100644 index 00000000..336312ce --- /dev/null +++ b/MathGame/obj/Debug/net8.0/MathGame.csproj.FileListAbsolute.txt @@ -0,0 +1,30 @@ +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/bin/Debug/net8.0/MathGame +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/bin/Debug/net8.0/MathGame.deps.json +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/bin/Debug/net8.0/MathGame.runtimeconfig.json +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/bin/Debug/net8.0/MathGame.dll +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/bin/Debug/net8.0/MathGame.pdb +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/MathGame.GeneratedMSBuildEditorConfig.editorconfig +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfoInputs.cache +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfo.cs +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/MathGame.csproj.CoreCompileInputs.cache +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/MathGame.sourcelink.json +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/MathGame.dll +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/refint/MathGame.dll +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/MathGame.pdb +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/MathGame.genruntimeconfig.cache +/home/dan/Desktop/projects/C#/CSharp-Course/MathGame/obj/Debug/net8.0/ref/MathGame.dll +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/bin/Debug/net8.0/MathGame +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/bin/Debug/net8.0/MathGame.deps.json +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/bin/Debug/net8.0/MathGame.runtimeconfig.json +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/bin/Debug/net8.0/MathGame.dll +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/bin/Debug/net8.0/MathGame.pdb +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/MathGame.GeneratedMSBuildEditorConfig.editorconfig +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfoInputs.cache +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/MathGame.AssemblyInfo.cs +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/MathGame.csproj.CoreCompileInputs.cache +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/MathGame.sourcelink.json +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/MathGame.dll +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/refint/MathGame.dll +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/MathGame.pdb +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/MathGame.genruntimeconfig.cache +/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/Debug/net8.0/ref/MathGame.dll diff --git a/MathGame/obj/Debug/net8.0/MathGame.dll b/MathGame/obj/Debug/net8.0/MathGame.dll new file mode 100644 index 00000000..094318f5 Binary files /dev/null and b/MathGame/obj/Debug/net8.0/MathGame.dll differ diff --git a/MathGame/obj/Debug/net8.0/MathGame.genruntimeconfig.cache b/MathGame/obj/Debug/net8.0/MathGame.genruntimeconfig.cache new file mode 100644 index 00000000..4584b99d --- /dev/null +++ b/MathGame/obj/Debug/net8.0/MathGame.genruntimeconfig.cache @@ -0,0 +1 @@ +161afd7f7d3a85a3313e08a8ed79de6963db81cb226f4aaf65f11073c884e344 diff --git a/MathGame/obj/Debug/net8.0/MathGame.pdb b/MathGame/obj/Debug/net8.0/MathGame.pdb new file mode 100644 index 00000000..526c4f0d Binary files /dev/null and b/MathGame/obj/Debug/net8.0/MathGame.pdb differ diff --git a/MathGame/obj/Debug/net8.0/MathGame.sourcelink.json b/MathGame/obj/Debug/net8.0/MathGame.sourcelink.json new file mode 100644 index 00000000..494a3098 --- /dev/null +++ b/MathGame/obj/Debug/net8.0/MathGame.sourcelink.json @@ -0,0 +1 @@ +{"documents":{"/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/*":"https://raw.githubusercontent.com/moffd234/CodeReviews.Console.MathGame/ae5a21b83cc2f472c5cfedf8f90212bad78dd290/*"}} \ No newline at end of file diff --git a/MathGame/obj/Debug/net8.0/apphost b/MathGame/obj/Debug/net8.0/apphost new file mode 100755 index 00000000..7ca2fede Binary files /dev/null and b/MathGame/obj/Debug/net8.0/apphost differ diff --git a/MathGame/obj/Debug/net8.0/ref/MathGame.dll b/MathGame/obj/Debug/net8.0/ref/MathGame.dll new file mode 100644 index 00000000..fbbf3b07 Binary files /dev/null and b/MathGame/obj/Debug/net8.0/ref/MathGame.dll differ diff --git a/MathGame/obj/Debug/net8.0/refint/MathGame.dll b/MathGame/obj/Debug/net8.0/refint/MathGame.dll new file mode 100644 index 00000000..fbbf3b07 Binary files /dev/null and b/MathGame/obj/Debug/net8.0/refint/MathGame.dll differ diff --git a/MathGame/obj/MathGame.csproj.nuget.dgspec.json b/MathGame/obj/MathGame.csproj.nuget.dgspec.json new file mode 100644 index 00000000..16c27974 --- /dev/null +++ b/MathGame/obj/MathGame.csproj.nuget.dgspec.json @@ -0,0 +1,63 @@ +{ + "format": 1, + "restore": { + "/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/MathGame.csproj": {} + }, + "projects": { + "/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/MathGame.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/MathGame.csproj", + "projectName": "MathGame", + "projectPath": "/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/MathGame.csproj", + "packagesPath": "/home/dan/.nuget/packages/", + "outputPath": "/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/dan/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "framework": "net8.0", + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net8.0": { + "framework": "net8.0", + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/8.0.131/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/MathGame/obj/MathGame.csproj.nuget.g.props b/MathGame/obj/MathGame.csproj.nuget.g.props new file mode 100644 index 00000000..5f0d49f8 --- /dev/null +++ b/MathGame/obj/MathGame.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /home/dan/.nuget/packages/ + /home/dan/.nuget/packages/ + PackageReference + 7.0.0 + + + + + \ No newline at end of file diff --git a/MathGame/obj/MathGame.csproj.nuget.g.targets b/MathGame/obj/MathGame.csproj.nuget.g.targets new file mode 100644 index 00000000..3dc06ef3 --- /dev/null +++ b/MathGame/obj/MathGame.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/MathGame/obj/project.assets.json b/MathGame/obj/project.assets.json new file mode 100644 index 00000000..6a756f5e --- /dev/null +++ b/MathGame/obj/project.assets.json @@ -0,0 +1,68 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "/home/dan/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/MathGame.csproj", + "projectName": "MathGame", + "projectPath": "/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/MathGame.csproj", + "packagesPath": "/home/dan/.nuget/packages/", + "outputPath": "/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/dan/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "framework": "net8.0", + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net8.0": { + "framework": "net8.0", + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/8.0.131/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/MathGame/obj/project.nuget.cache b/MathGame/obj/project.nuget.cache new file mode 100644 index 00000000..98fc7f65 --- /dev/null +++ b/MathGame/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "mPdXU6XHgmA=", + "success": true, + "projectFilePath": "/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/MathGame.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/MathGame/obj/project.packagespec.json b/MathGame/obj/project.packagespec.json new file mode 100644 index 00000000..f79e6077 --- /dev/null +++ b/MathGame/obj/project.packagespec.json @@ -0,0 +1 @@ +"restore":{"projectUniqueName":"/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/MathGame.csproj","projectName":"MathGame","projectPath":"/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/MathGame.csproj","packagesPath":"","outputPath":"/home/dan/Desktop/projects/C#/CSharp-Course/CodeReviews.Console.MathGame/MathGame/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"framework":"net8.0","targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net8.0":{"framework":"net8.0","targetAlias":"net8.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/lib/dotnet/sdk/8.0.131/PortableRuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/MathGame/obj/rider.project.model.nuget.info b/MathGame/obj/rider.project.model.nuget.info new file mode 100644 index 00000000..40a7a745 --- /dev/null +++ b/MathGame/obj/rider.project.model.nuget.info @@ -0,0 +1 @@ +17915676505073145 \ No newline at end of file diff --git a/MathGame/obj/rider.project.restore.info b/MathGame/obj/rider.project.restore.info new file mode 100644 index 00000000..8baa982e --- /dev/null +++ b/MathGame/obj/rider.project.restore.info @@ -0,0 +1 @@ +17915676844363136 \ No newline at end of file