diff --git a/MathGame.CSamu7/Logic/Contest.cs b/MathGame.CSamu7/Logic/Contest.cs new file mode 100644 index 00000000..422caa11 --- /dev/null +++ b/MathGame.CSamu7/Logic/Contest.cs @@ -0,0 +1,39 @@ +using MathGame.Utils; +using MathGame.Views; + +namespace MathGame.Logic +{ + public class Contest + { + private readonly int _noQuestions = 5; + private int points = 0; + private readonly Question _question; + public ContestConfig Config { get; init; } + public Contest(ContestConfig config) + { + Config = config; + + IIntervalFactory interval = Config.Difficulty switch + { + Difficulty.Easy => new EasyIntervalFactory(), + Difficulty.Medium => new MediumIntervalFactory(), + _ => new HardIntervalFactory() + }; + + _question = new Question(new OperationGenerator(interval)); + } + public int Play() + { + for (int i = 0; i < _noQuestions; i++) + { + string op = GetOperator(); + + int point = _question.Prompt(op); + points += point; + } + + return points; + } + protected virtual string GetOperator() => Config.Operator; + } +} diff --git a/MathGame.CSamu7/Logic/ContestConfig.cs b/MathGame.CSamu7/Logic/ContestConfig.cs new file mode 100644 index 00000000..a39487eb --- /dev/null +++ b/MathGame.CSamu7/Logic/ContestConfig.cs @@ -0,0 +1,20 @@ +using MathGame.Views; + +namespace MathGame.Logic +{ + public record ContestConfig + { + public Difficulty Difficulty { get; init; } + public string Operator { get; init; } + private ContestConfig(Difficulty difficulty, string op) + { + Difficulty = difficulty; + Operator = op; + } + public static ContestConfig RandomContest(Difficulty difficulty) => + new ContestConfig(difficulty, String.Empty); + public static ContestConfig NormalContest(Difficulty difficulty, string op) => + new ContestConfig(difficulty, op); + } + public enum ContestType { Normal, Random }; +} diff --git a/MathGame.CSamu7/Logic/ContestRandom.cs b/MathGame.CSamu7/Logic/ContestRandom.cs new file mode 100644 index 00000000..c6341c96 --- /dev/null +++ b/MathGame.CSamu7/Logic/ContestRandom.cs @@ -0,0 +1,19 @@ +namespace MathGame.Logic +{ + public class ContestRandom : Contest + { + public ContestRandom(ContestConfig config) : base(config) + { + + } + protected override string GetOperator() + { + List operators = ["+", "-", "*", "/"]; + Random rnd = new Random(); + + int rndIndex = rnd.Next(operators.Count); + + return operators[rndIndex]; + } + } +} diff --git a/MathGame.CSamu7/Logic/DivisionValidation.cs b/MathGame.CSamu7/Logic/DivisionValidation.cs new file mode 100644 index 00000000..bc8f77d2 --- /dev/null +++ b/MathGame.CSamu7/Logic/DivisionValidation.cs @@ -0,0 +1,14 @@ +namespace MathGame.Logic +{ + public class DivisionValidation() + { + public bool IsValid(int n1, int n2) + { + bool areDividendsNotEqual = n1 != n2; + bool isQuotientAnInteger = n1 % n2 == 0; + + return areDividendsNotEqual + && isQuotientAnInteger; + } + } +} diff --git a/MathGame.CSamu7/Logic/HistoryRecord.cs b/MathGame.CSamu7/Logic/HistoryRecord.cs new file mode 100644 index 00000000..7d377d3e --- /dev/null +++ b/MathGame.CSamu7/Logic/HistoryRecord.cs @@ -0,0 +1,4 @@ +namespace MathGame.Logic +{ + public record HistoryRecord(string Difficulty, string Operation, int Points, TimeSpan Time); +} diff --git a/MathGame.CSamu7/Logic/IIntervalGenerator.cs b/MathGame.CSamu7/Logic/IIntervalGenerator.cs new file mode 100644 index 00000000..774ab461 --- /dev/null +++ b/MathGame.CSamu7/Logic/IIntervalGenerator.cs @@ -0,0 +1,46 @@ +namespace MathGame.Logic +{ + public interface IIntervalFactory + { + public Interval GetInterval(string op); + } + public class EasyIntervalFactory : IIntervalFactory + { + public Interval GetInterval(string op) + { + return op switch + { + "+" or "-" => new Interval(0, 10), + "*" => new Interval(0, 10), + "/" => new Interval(1, 60), + _ => new Interval(0, 10) + }; + } + }; + public class MediumIntervalFactory : IIntervalFactory + { + public Interval GetInterval(string op) + { + return op switch + { + "+" or "-" => new Interval(0, 50), + "*" => new Interval(0, 15), + "/" => new Interval(3, 120), + _ => new Interval(0, 50) + }; + } + } + public class HardIntervalFactory : IIntervalFactory + { + public Interval GetInterval(string op) + { + return op switch + { + "+" or "-" => new Interval(0, 100), + "*" => new Interval(0, 20), + "/" => new Interval(4, 240), + _ => new Interval(0, 100) + }; + } + } +} diff --git a/MathGame.CSamu7/Logic/Interval.cs b/MathGame.CSamu7/Logic/Interval.cs new file mode 100644 index 00000000..5f8b203f --- /dev/null +++ b/MathGame.CSamu7/Logic/Interval.cs @@ -0,0 +1,15 @@ +namespace MathGame.Logic +{ + public record Interval + { + public int Min { get; init; } + public int Max { get; init; } + public Interval(int min, int max) + { + if (min > max) throw new ArgumentException(); + + Min = min; + Max = max; + } + } +} diff --git a/MathGame.CSamu7/Logic/Operation.cs b/MathGame.CSamu7/Logic/Operation.cs new file mode 100644 index 00000000..27889c8e --- /dev/null +++ b/MathGame.CSamu7/Logic/Operation.cs @@ -0,0 +1,25 @@ +namespace MathGame.Logic +{ + public record Operation + { + public int N1 { get; private set; } + public int N2 { get; private set; } + public string Operator { get; private set; } + public Operation(int n1, int n2, string op) + { + N1 = n1; + N2 = n2; + Operator = op; + } + public int Calculate() + { + return Operator switch + { + "+" => N1 + N2, + "-" => N1 - N2, + "*" => N1 * N2, + "/" => N1 / N2, + }; + } + } +} diff --git a/MathGame.CSamu7/Logic/OperationGenerator.cs b/MathGame.CSamu7/Logic/OperationGenerator.cs new file mode 100644 index 00000000..ab266dff --- /dev/null +++ b/MathGame.CSamu7/Logic/OperationGenerator.cs @@ -0,0 +1,25 @@ +namespace MathGame.Logic +{ + + public class OperationGenerator(IIntervalFactory interval) + { + private readonly Random _rnd = new(); + private readonly IIntervalFactory _interval = interval; + private readonly DivisionValidation _divValidation = new(); + public Operation Generate(string op) + { + while (true) + { + Interval interval = _interval.GetInterval(op); + + int n1 = _rnd.Next(interval.Min, interval.Max); + int n2 = _rnd.Next(interval.Min, interval.Max); + + if (op == "/" && !_divValidation.IsValid(n1, n2)) + continue; + + return new Operation(n1, n2, op); + } + } + } +} diff --git a/MathGame.CSamu7/Logic/Question.cs b/MathGame.CSamu7/Logic/Question.cs new file mode 100644 index 00000000..334e7a16 --- /dev/null +++ b/MathGame.CSamu7/Logic/Question.cs @@ -0,0 +1,33 @@ +using MathGame.Utils; + +namespace MathGame.Logic +{ + public class Question + { + private readonly OperationGenerator _operationGenerator; + public Question(OperationGenerator operationGenerator) + { + _operationGenerator = operationGenerator; + } + public int Prompt(string operation) + { + Console.Clear(); + Operation op = _operationGenerator.Generate(operation); + + Console.WriteLine($"What's the result of {op.N1} {op.Operator} {op.N2}?"); + int answer = GetAnswer(); + + return answer == op.Calculate() ? 1 : 0; + } + private int GetAnswer() + { + while (true) + { + if (int.TryParse(Console.ReadLine(), out int answer)) + return answer; + + ConsoleUtils.Error("You need to enter a number"); + } + } + } +} diff --git a/MathGame.CSamu7/MathGame.csproj b/MathGame.CSamu7/MathGame.csproj new file mode 100644 index 00000000..206b89a9 --- /dev/null +++ b/MathGame.CSamu7/MathGame.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/MathGame.CSamu7/MathGame.sln b/MathGame.CSamu7/MathGame.sln new file mode 100644 index 00000000..62e8eea4 --- /dev/null +++ b/MathGame.CSamu7/MathGame.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36603.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MathGame", "MathGame.csproj", "{FE7A7814-A57D-4D15-BE98-0B48968094AF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FE7A7814-A57D-4D15-BE98-0B48968094AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FE7A7814-A57D-4D15-BE98-0B48968094AF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FE7A7814-A57D-4D15-BE98-0B48968094AF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FE7A7814-A57D-4D15-BE98-0B48968094AF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2CFE25C1-050F-4262-B678-DC967B7CA3E5} + EndGlobalSection +EndGlobal diff --git a/MathGame.CSamu7/Program.cs b/MathGame.CSamu7/Program.cs new file mode 100644 index 00000000..8bb9e043 --- /dev/null +++ b/MathGame.CSamu7/Program.cs @@ -0,0 +1,13 @@ +using MathGame.Views; + +namespace MathGame +{ + public class Program + { + static void Main(string[] args) + { + Game game = new Game(); + game.Start(); + } + } +} diff --git a/MathGame.CSamu7/Utils/ConsoleUtils.cs b/MathGame.CSamu7/Utils/ConsoleUtils.cs new file mode 100644 index 00000000..aa03f2c7 --- /dev/null +++ b/MathGame.CSamu7/Utils/ConsoleUtils.cs @@ -0,0 +1,39 @@ +namespace MathGame.Utils +{ + public static class ConsoleUtils + { + public static void Error(string message) + { + WriteLine(message, ConsoleColor.Red); + } + public static void WriteLine(string message, ConsoleColor color) + { + Console.ForegroundColor = color; + Console.WriteLine(message); + Console.ForegroundColor = ConsoleColor.Gray; + } + public static void DisplayList(List list) + { + for (int i = 0; i < list.Count; i++) + { + Console.WriteLine($"{i + 1}. {list[i]}"); + } + } + public static bool ReadOption(out int option, Predicate extraValidation) + { + if (!int.TryParse(Console.ReadLine(), out option)) + { + ConsoleUtils.Error($"You have to enter a number"); + return false; + } + + if (!extraValidation(option)) + { + ConsoleUtils.Error($"This isn't a valid option"); + return false; + } + + return true; + } +} +} diff --git a/MathGame.CSamu7/Utils/TimeSpanExtensions.cs b/MathGame.CSamu7/Utils/TimeSpanExtensions.cs new file mode 100644 index 00000000..e16d3f31 --- /dev/null +++ b/MathGame.CSamu7/Utils/TimeSpanExtensions.cs @@ -0,0 +1,12 @@ +using System.Globalization; + +namespace MathGame.Utils +{ + public static class TimeSpanExtensions + { + public static string ToMinutesSeconds(this TimeSpan time) + { + return time.ToString("mm':'ss"); + } + } +} diff --git a/MathGame.CSamu7/Views/ContestConfigView.cs b/MathGame.CSamu7/Views/ContestConfigView.cs new file mode 100644 index 00000000..957f5eca --- /dev/null +++ b/MathGame.CSamu7/Views/ContestConfigView.cs @@ -0,0 +1,31 @@ +using MathGame.Logic; + +namespace MathGame.Views +{ + public class ContestConfigView + { + private readonly OperationMenu _menuOperation = new(); + private readonly DifficultyMenu _difficultyView = new(); + private readonly ContestTypeMenu _contestType = new(); + public Contest GetContest() + { + Difficulty difficulty = _difficultyView.GetDifficulty(); + ContestType type = _contestType.GetGameType(); + ContestConfig config; + Contest contest; + + if (type.Equals(Logic.ContestType.Random)) + { + config = ContestConfig.RandomContest(difficulty); + contest = new ContestRandom(config); + } else + { + string operation = _menuOperation.GetOperation(); + config = ContestConfig.NormalContest(difficulty, operation); + contest = new Contest(config); + } + + return contest; + } + } +} diff --git a/MathGame.CSamu7/Views/ContestResults.cs b/MathGame.CSamu7/Views/ContestResults.cs new file mode 100644 index 00000000..33516949 --- /dev/null +++ b/MathGame.CSamu7/Views/ContestResults.cs @@ -0,0 +1,25 @@ +using MathGame.Utils; + +namespace MathGame.Views +{ + public class ContestResults + { + public void Display(TimeSpan time, int points) + { + DisplayResults(points); + Console.Write($"Your time is {time.ToMinutesSeconds()}"); + Thread.Sleep(2000); + } + private void DisplayResults(int points) + { + ConsoleColor color = points switch + { + >= 4 => ConsoleColor.Green, + >= 2 => ConsoleColor.Yellow, + _ => ConsoleColor.Red + }; + + ConsoleUtils.WriteLine($"You won {points} points", color); + } + } +} diff --git a/MathGame.CSamu7/Views/ContestTypeMenu.cs b/MathGame.CSamu7/Views/ContestTypeMenu.cs new file mode 100644 index 00000000..87c9cff5 --- /dev/null +++ b/MathGame.CSamu7/Views/ContestTypeMenu.cs @@ -0,0 +1,32 @@ +using MathGame.Logic; +using MathGame.Utils; + +namespace MathGame.Views +{ + public class ContestTypeMenu + { + private readonly List _options = ["Normal", "Random"]; + private readonly string _title = "Choose a mode of game"; + private readonly string _instruction = "Select the mode of game: "; + public ContestType GetGameType() + { + while (true) + { + Console.Clear(); + Console.WriteLine(_title); + ConsoleUtils.DisplayList(_options); + Console.Write(_instruction); + + if (!ConsoleUtils.ReadOption(out int option, x => x > 0 && x <= _options.Count)) + { + Thread.Sleep(2000); + continue; + } + + return option == 1 + ? ContestType.Normal + : ContestType.Random; + } + } + } +} diff --git a/MathGame.CSamu7/Views/ContestView.cs b/MathGame.CSamu7/Views/ContestView.cs new file mode 100644 index 00000000..d7398976 --- /dev/null +++ b/MathGame.CSamu7/Views/ContestView.cs @@ -0,0 +1,26 @@ +using MathGame.Logic; +using MathGame.Utils; + +namespace MathGame.Views +{ + public class ContestView + { + private readonly ContestResults _results = new(); + public void Display(List history, Contest contest) + { + DateTime timeStart = DateTime.Now; + int points = contest.Play(); + TimeSpan totalTime = DateTime.Now - timeStart; + + _results.Display(totalTime, points); + + string operation = contest.Config.Operator; + Difficulty difficulty = contest.Config.Difficulty; + + string op = String.IsNullOrEmpty(operation) ? "R" : operation; + + history.Add(new(difficulty.ToString(), op, points, totalTime)); + } + } +} + diff --git a/MathGame.CSamu7/Views/DifficultyMenu.cs b/MathGame.CSamu7/Views/DifficultyMenu.cs new file mode 100644 index 00000000..03b5b871 --- /dev/null +++ b/MathGame.CSamu7/Views/DifficultyMenu.cs @@ -0,0 +1,35 @@ +using MathGame.Utils; + +namespace MathGame.Views +{ + public class DifficultyMenu + { + private readonly string _title = "Choose a difficulty"; + private readonly List _options = ["Easy", "Medium", "Hard"]; + private readonly string _instruction = "Enter the difficulty: "; + public Difficulty GetDifficulty() + { + while (true) { + Console.Clear(); + + Console.WriteLine(_title); + ConsoleUtils.DisplayList(_options); + Console.Write(_instruction); + + if (!ConsoleUtils.ReadOption(out int option, x => x > 0 && x <= _options.Count)) + { + Thread.Sleep(2000); + continue; + } + + return option switch + { + 1 => Difficulty.Easy, + 2 => Difficulty.Medium, + _ => Difficulty.Hard + }; + } + } + } + public enum Difficulty { Easy, Medium, Hard } +} diff --git a/MathGame.CSamu7/Views/Game.cs b/MathGame.CSamu7/Views/Game.cs new file mode 100644 index 00000000..6e638cd8 --- /dev/null +++ b/MathGame.CSamu7/Views/Game.cs @@ -0,0 +1,44 @@ +using MathGame.Logic; +using MathGame.Utils; + +namespace MathGame.Views +{ + public class Game + { + private readonly List history = []; + + private readonly List _options = ["Play a match", "View history"]; + private readonly string _title = "============MATH GAME============"; + private readonly string _instruction = "Enter the option: "; + + private readonly ContestConfigView _contestConfigView = new(); + private readonly ContestView _contestView = new(); + public void Start() + { + while (true) + { + Console.WriteLine(_title); + ConsoleUtils.DisplayList(_options); + Console.Write(_instruction); + + if (!ConsoleUtils.ReadOption(out int option, x => x > 0 && x <= _options.Count)) + { + Thread.Sleep(2000); + continue; + } + + if (option == 1) + { + Contest contest = _contestConfigView.GetContest(); + _contestView.Display(history, contest); + } else + { + History view = new History(); + view.Display(history); + } + + Console.Clear(); + } + } + } +} diff --git a/MathGame.CSamu7/Views/History.cs b/MathGame.CSamu7/Views/History.cs new file mode 100644 index 00000000..2937057e --- /dev/null +++ b/MathGame.CSamu7/Views/History.cs @@ -0,0 +1,44 @@ +using MathGame.Logic; +using MathGame.Utils; + +namespace MathGame.Views +{ + public class History + { + private readonly string _title = "History"; + public void Display(List history) + { + while (true) + { + Console.Clear(); + Console.WriteLine(_title); + + if (history.Count == 0) + { + DisplayNotGames(); + } else + { + DisplayPreviousGames(history); + } + + Console.WriteLine("Press any key to exit."); + string? exit = Console.ReadLine(); + + if (exit is not null) break; + } + } + private void DisplayPreviousGames(List history) + { + for (int i = 0; i < history.Count; i++) + { + Console.WriteLine($" Game {i + 1}: " + + $"{history[i].Difficulty} ({history[i].Operation}). {history[i].Points} points. " + + $"{history[i].Time.ToMinutesSeconds()}"); + } + } + private void DisplayNotGames() + { + Console.WriteLine("There aren't previous matches"); + } + } +} diff --git a/MathGame.CSamu7/Views/OperationMenu.cs b/MathGame.CSamu7/Views/OperationMenu.cs new file mode 100644 index 00000000..f38fd9e2 --- /dev/null +++ b/MathGame.CSamu7/Views/OperationMenu.cs @@ -0,0 +1,35 @@ +using MathGame.Utils; + +namespace MathGame.Views +{ + public class OperationMenu + { + private readonly List _operations = ["Sum", "Rest", "Multiplication", "Division"]; + private readonly string _title = "Choose the operation you prefer"; + private readonly string _instruction = "Enter an operation: "; + public string GetOperation() + { + while (true) + { + Console.Clear(); + Console.WriteLine(_title); + ConsoleUtils.DisplayList(_operations); + Console.Write(_instruction); + + if (!ConsoleUtils.ReadOption(out int option, x => x > 0 && x <= _operations.Count)) + { + Thread.Sleep(2000); + continue; + } + + return option switch + { + 1 => "+", + 2 => "-", + 3 => "*", + _ => "/" + }; + } + } + } +} diff --git a/MathGame.CSamu7/bin/Debug/net8.0/MathGame.deps.json b/MathGame.CSamu7/bin/Debug/net8.0/MathGame.deps.json new file mode 100644 index 00000000..a78138a3 --- /dev/null +++ b/MathGame.CSamu7/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.CSamu7/bin/Debug/net8.0/MathGame.dll b/MathGame.CSamu7/bin/Debug/net8.0/MathGame.dll new file mode 100644 index 00000000..e0f093c0 Binary files /dev/null and b/MathGame.CSamu7/bin/Debug/net8.0/MathGame.dll differ diff --git a/MathGame.CSamu7/bin/Debug/net8.0/MathGame.exe b/MathGame.CSamu7/bin/Debug/net8.0/MathGame.exe new file mode 100644 index 00000000..06d3ce42 Binary files /dev/null and b/MathGame.CSamu7/bin/Debug/net8.0/MathGame.exe differ diff --git a/MathGame.CSamu7/bin/Debug/net8.0/MathGame.pdb b/MathGame.CSamu7/bin/Debug/net8.0/MathGame.pdb new file mode 100644 index 00000000..a2e4b487 Binary files /dev/null and b/MathGame.CSamu7/bin/Debug/net8.0/MathGame.pdb differ diff --git a/MathGame.CSamu7/bin/Debug/net8.0/MathGame.runtimeconfig.json b/MathGame.CSamu7/bin/Debug/net8.0/MathGame.runtimeconfig.json new file mode 100644 index 00000000..1de3a5db --- /dev/null +++ b/MathGame.CSamu7/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.CSamu7/obj/Debug/net8.0/MathGame.AssemblyInfo.cs b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.AssemblyInfo.cs new file mode 100644 index 00000000..e2cd842d --- /dev/null +++ b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Este código fue generado por una herramienta. +// Versión de runtime:4.0.30319.42000 +// +// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si +// se vuelve a generar el código. +// +//------------------------------------------------------------------------------ + +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+35c1d93ab4163393c8e31855de0036489ac33bd4")] +[assembly: System.Reflection.AssemblyProductAttribute("MathGame")] +[assembly: System.Reflection.AssemblyTitleAttribute("MathGame")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generado por la clase WriteCodeFragment de MSBuild. + diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.AssemblyInfoInputs.cache b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.AssemblyInfoInputs.cache new file mode 100644 index 00000000..d6367fd4 --- /dev/null +++ b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +0e414503824418461ad0cf7990c2b9ff89dd951baa97419b1dbf0c4c6aeded66 diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.GeneratedMSBuildEditorConfig.editorconfig b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 00000000..25a2860a --- /dev/null +++ b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +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 = C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.GlobalUsings.g.cs b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.GlobalUsings.g.cs new file mode 100644 index 00000000..ac22929d --- /dev/null +++ b/MathGame.CSamu7/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.CSamu7/obj/Debug/net8.0/MathGame.assets.cache b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.assets.cache new file mode 100644 index 00000000..2e5a3b80 Binary files /dev/null and b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.assets.cache differ diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.csproj.BuildWithSkipAnalyzers b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.csproj.BuildWithSkipAnalyzers new file mode 100644 index 00000000..e69de29b diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.csproj.CoreCompileInputs.cache b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.csproj.CoreCompileInputs.cache new file mode 100644 index 00000000..ede72839 --- /dev/null +++ b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +6c8b5f769407bc22dbcef892f820af71d399c767fdd77aefb74ce97b5a8b831e diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.csproj.FileListAbsolute.txt b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.csproj.FileListAbsolute.txt new file mode 100644 index 00000000..d3b6a933 --- /dev/null +++ b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.csproj.FileListAbsolute.txt @@ -0,0 +1,15 @@ +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\bin\Debug\net8.0\MathGame.exe +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\bin\Debug\net8.0\MathGame.deps.json +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\bin\Debug\net8.0\MathGame.runtimeconfig.json +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\bin\Debug\net8.0\MathGame.dll +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\bin\Debug\net8.0\MathGame.pdb +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\MathGame.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\MathGame.AssemblyInfoInputs.cache +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\MathGame.AssemblyInfo.cs +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\MathGame.csproj.CoreCompileInputs.cache +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\MathGame.dll +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\refint\MathGame.dll +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\MathGame.pdb +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\MathGame.genruntimeconfig.cache +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\ref\MathGame.dll +C:\Users\samue\source\repos\CSharpAcademy\Console\MathGame\obj\Debug\net8.0\MathGame.sourcelink.json diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.dll b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.dll new file mode 100644 index 00000000..e0f093c0 Binary files /dev/null and b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.dll differ diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.genruntimeconfig.cache b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.genruntimeconfig.cache new file mode 100644 index 00000000..ad9a5267 --- /dev/null +++ b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.genruntimeconfig.cache @@ -0,0 +1 @@ +2efb6a51bc34d77dfb4bab0ada1486b76da9f4da2ff5860708f5ccbd00bdf1da diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.pdb b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.pdb new file mode 100644 index 00000000..a2e4b487 Binary files /dev/null and b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.pdb differ diff --git a/MathGame.CSamu7/obj/Debug/net8.0/MathGame.sourcelink.json b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.sourcelink.json new file mode 100644 index 00000000..ad39e68a --- /dev/null +++ b/MathGame.CSamu7/obj/Debug/net8.0/MathGame.sourcelink.json @@ -0,0 +1 @@ +{"documents":{"C:\\Users\\samue\\source\\repos\\CSharpAcademy\\*":"https://raw.githubusercontent.com/CSamu7/CSharpAcademy/35c1d93ab4163393c8e31855de0036489ac33bd4/*"}} \ No newline at end of file diff --git a/MathGame.CSamu7/obj/Debug/net8.0/apphost.exe b/MathGame.CSamu7/obj/Debug/net8.0/apphost.exe new file mode 100644 index 00000000..06d3ce42 Binary files /dev/null and b/MathGame.CSamu7/obj/Debug/net8.0/apphost.exe differ diff --git a/MathGame.CSamu7/obj/Debug/net8.0/ref/MathGame.dll b/MathGame.CSamu7/obj/Debug/net8.0/ref/MathGame.dll new file mode 100644 index 00000000..49d6b077 Binary files /dev/null and b/MathGame.CSamu7/obj/Debug/net8.0/ref/MathGame.dll differ diff --git a/MathGame.CSamu7/obj/Debug/net8.0/refint/MathGame.dll b/MathGame.CSamu7/obj/Debug/net8.0/refint/MathGame.dll new file mode 100644 index 00000000..49d6b077 Binary files /dev/null and b/MathGame.CSamu7/obj/Debug/net8.0/refint/MathGame.dll differ diff --git a/MathGame.CSamu7/obj/MathGame.csproj.nuget.dgspec.json b/MathGame.CSamu7/obj/MathGame.csproj.nuget.dgspec.json new file mode 100644 index 00000000..3b792435 --- /dev/null +++ b/MathGame.CSamu7/obj/MathGame.csproj.nuget.dgspec.json @@ -0,0 +1,74 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\samue\\source\\repos\\CSharpAcademy\\Console\\MathGame\\MathGame.csproj": {} + }, + "projects": { + "C:\\Users\\samue\\source\\repos\\CSharpAcademy\\Console\\MathGame\\MathGame.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\samue\\source\\repos\\CSharpAcademy\\Console\\MathGame\\MathGame.csproj", + "projectName": "MathGame", + "projectPath": "C:\\Users\\samue\\source\\repos\\CSharpAcademy\\Console\\MathGame\\MathGame.csproj", + "packagesPath": "C:\\Users\\samue\\.nuget\\packages\\", + "outputPath": "C:\\Users\\samue\\source\\repos\\CSharpAcademy\\Console\\MathGame\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\samue\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.309/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/MathGame.CSamu7/obj/MathGame.csproj.nuget.g.props b/MathGame.CSamu7/obj/MathGame.csproj.nuget.g.props new file mode 100644 index 00000000..fb22cc8b --- /dev/null +++ b/MathGame.CSamu7/obj/MathGame.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\samue\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.14.2 + + + + + + \ No newline at end of file diff --git a/MathGame.CSamu7/obj/MathGame.csproj.nuget.g.targets b/MathGame.CSamu7/obj/MathGame.csproj.nuget.g.targets new file mode 100644 index 00000000..35a7576c --- /dev/null +++ b/MathGame.CSamu7/obj/MathGame.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/MathGame.CSamu7/obj/project.assets.json b/MathGame.CSamu7/obj/project.assets.json new file mode 100644 index 00000000..3b8ff334 --- /dev/null +++ b/MathGame.CSamu7/obj/project.assets.json @@ -0,0 +1,80 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "C:\\Users\\samue\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\samue\\source\\repos\\CSharpAcademy\\Console\\MathGame\\MathGame.csproj", + "projectName": "MathGame", + "projectPath": "C:\\Users\\samue\\source\\repos\\CSharpAcademy\\Console\\MathGame\\MathGame.csproj", + "packagesPath": "C:\\Users\\samue\\.nuget\\packages\\", + "outputPath": "C:\\Users\\samue\\source\\repos\\CSharpAcademy\\Console\\MathGame\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\samue\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.309/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/MathGame.CSamu7/obj/project.nuget.cache b/MathGame.CSamu7/obj/project.nuget.cache new file mode 100644 index 00000000..ad4b4471 --- /dev/null +++ b/MathGame.CSamu7/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "thRQKcrxcak=", + "success": true, + "projectFilePath": "C:\\Users\\samue\\source\\repos\\CSharpAcademy\\Console\\MathGame\\MathGame.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file