diff --git a/2019/Day2/Part2.cs b/2019/Day2/Part2.cs index c143471..bdd0391 100644 --- a/2019/Day2/Part2.cs +++ b/2019/Day2/Part2.cs @@ -10,7 +10,7 @@ namespace Part2 { bool success = false; int min = 0; // min and max for the input values - int max = 99; // + int max = 16; // int maxcombos = Convert.ToInt16( Math.Pow( (double)(max + 1), 2.0 ) ); Part1.compile compile = new Part1.compile(); diff --git a/2019/Day2/Program.cs b/2019/Day2/Program.cs index d8e8dd2..2a4e1fb 100644 --- a/2019/Day2/Program.cs +++ b/2019/Day2/Program.cs @@ -37,7 +37,7 @@ namespace Day2 { Part2.calcInputs calcInputs = new Part2.calcInputs(); int[] intcodes2 = intcodes; // make a new instance of it int res; - res = calcInputs.bruteforce( intcodes2, 19690720, false ); + res = calcInputs.bruteforce( intcodes2, 8, false ); Console.WriteLine( "Part 2 Result: {0}", res ); } } diff --git a/2019/Day2/bin/Debug/netcoreapp2.2/Day2.dll b/2019/Day2/bin/Debug/netcoreapp2.2/Day2.dll index 38bbd21..c97a312 100644 Binary files a/2019/Day2/bin/Debug/netcoreapp2.2/Day2.dll and b/2019/Day2/bin/Debug/netcoreapp2.2/Day2.dll differ diff --git a/2019/Day2/bin/Debug/netcoreapp2.2/Day2.pdb b/2019/Day2/bin/Debug/netcoreapp2.2/Day2.pdb index 4131df7..3f14339 100644 Binary files a/2019/Day2/bin/Debug/netcoreapp2.2/Day2.pdb and b/2019/Day2/bin/Debug/netcoreapp2.2/Day2.pdb differ diff --git a/2019/Day2/bin/Debug/netcoreapp2.2/Day2.runtimeconfig.dev.json b/2019/Day2/bin/Debug/netcoreapp2.2/Day2.runtimeconfig.dev.json index da423f0..dc3b903 100644 --- a/2019/Day2/bin/Debug/netcoreapp2.2/Day2.runtimeconfig.dev.json +++ b/2019/Day2/bin/Debug/netcoreapp2.2/Day2.runtimeconfig.dev.json @@ -1,8 +1,9 @@ { "runtimeOptions": { "additionalProbingPaths": [ - "/home/elal/.dotnet/store/|arch|/|tfm|", - "/home/elal/.nuget/packages" + "C:\\Users\\elias.almqvist\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\elias.almqvist\\.nuget\\packages", + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" ] } } \ No newline at end of file diff --git a/2019/Day2/obj/Day2.csproj.nuget.cache b/2019/Day2/obj/Day2.csproj.nuget.cache index aca1394..6ae13ec 100644 --- a/2019/Day2/obj/Day2.csproj.nuget.cache +++ b/2019/Day2/obj/Day2.csproj.nuget.cache @@ -1,5 +1,5 @@ { "version": 1, - "dgSpecHash": "WGPy0F+3AX2FrBKpPAYLKoPyKm8mT9nvSxwf1DU0kcg+H41fJVNHn+vTzdr7A/b3qqioCrpqhVX0rXrCRgYD0A==", + "dgSpecHash": "H0DbvNjpCZs2cvc6af0z77m5cGcniJIbBq7nnRi0id7IoRVx0v2JL7kowsDAOzqGG1/wWgHq3BUepI0yrFWnmA==", "success": true } \ No newline at end of file diff --git a/2019/Day2/obj/Day2.csproj.nuget.dgspec.json b/2019/Day2/obj/Day2.csproj.nuget.dgspec.json index 062a159..2790a91 100644 --- a/2019/Day2/obj/Day2.csproj.nuget.dgspec.json +++ b/2019/Day2/obj/Day2.csproj.nuget.dgspec.json @@ -1,17 +1,17 @@ { "format": 1, "restore": { - "C:\\EliasPrograms\\adventofcode\\2019\\Day2\\Day2.csproj": {} + "C:\\EliasPrograms\\AdventOfCode\\2019\\Day2\\Day2.csproj": {} }, "projects": { - "C:\\EliasPrograms\\adventofcode\\2019\\Day2\\Day2.csproj": { + "C:\\EliasPrograms\\AdventOfCode\\2019\\Day2\\Day2.csproj": { "version": "1.0.0", "restore": { - "projectUniqueName": "C:\\EliasPrograms\\adventofcode\\2019\\Day2\\Day2.csproj", + "projectUniqueName": "C:\\EliasPrograms\\AdventOfCode\\2019\\Day2\\Day2.csproj", "projectName": "Day2", - "projectPath": "C:\\EliasPrograms\\adventofcode\\2019\\Day2\\Day2.csproj", + "projectPath": "C:\\EliasPrograms\\AdventOfCode\\2019\\Day2\\Day2.csproj", "packagesPath": "C:\\Users\\elias.almqvist\\.nuget\\packages\\", - "outputPath": "C:\\EliasPrograms\\adventofcode\\2019\\Day2\\obj\\", + "outputPath": "C:\\EliasPrograms\\AdventOfCode\\2019\\Day2\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" diff --git a/2019/Day2/obj/Day2.csproj.nuget.g.props b/2019/Day2/obj/Day2.csproj.nuget.g.props index 94264e6..1523cbb 100644 --- a/2019/Day2/obj/Day2.csproj.nuget.g.props +++ b/2019/Day2/obj/Day2.csproj.nuget.g.props @@ -3,16 +3,16 @@ True NuGet - /home/elal/Projects/adventofcode/2019/Day2/obj/project.assets.json - /home/elal/.nuget/packages/ - /home/elal/.nuget/packages/ + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\elias.almqvist\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder PackageReference - 4.9.4 + 5.2.0 $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - + \ No newline at end of file diff --git a/2019/Day2/obj/Day2.csproj.nuget.g.targets b/2019/Day2/obj/Day2.csproj.nuget.g.targets index 3c1e569..cfeba20 100644 --- a/2019/Day2/obj/Day2.csproj.nuget.g.targets +++ b/2019/Day2/obj/Day2.csproj.nuget.g.targets @@ -4,7 +4,7 @@ $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - + + \ No newline at end of file diff --git a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.AssemblyInfo.cs b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.AssemblyInfo.cs index 61f3be5..2c1c8df 100644 --- a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.AssemblyInfo.cs +++ b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.AssemblyInfo.cs @@ -1,10 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// Generated by the MSBuild WriteCodeFragment class. // //------------------------------------------------------------------------------ @@ -18,6 +14,3 @@ using System.Reflection; [assembly: System.Reflection.AssemblyProductAttribute("Day2")] [assembly: System.Reflection.AssemblyTitleAttribute("Day2")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] - -// Generated by the MSBuild WriteCodeFragment class. - diff --git a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.assets.cache b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.assets.cache index 1d91a10..629ec85 100644 Binary files a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.assets.cache and b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.assets.cache differ diff --git a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csproj.CoreCompileInputs.cache b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csproj.CoreCompileInputs.cache index c8e498d..3fa7f44 100644 --- a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csproj.CoreCompileInputs.cache +++ b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -f79d1ed33da9ca6da7e131988eb0964470e8edf6 +ef1d77eae137f939d9813c710a8e37f5204edb6a diff --git a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csproj.FileListAbsolute.txt b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csproj.FileListAbsolute.txt index 6d1f5b9..440deab 100644 --- a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csproj.FileListAbsolute.txt +++ b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csproj.FileListAbsolute.txt @@ -1,14 +1,3 @@ -C:/EliasPrograms/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csprojAssemblyReference.cache -C:/EliasPrograms/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csproj.CoreCompileInputs.cache -C:/EliasPrograms/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.AssemblyInfoInputs.cache -C:/EliasPrograms/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.AssemblyInfo.cs -C:/EliasPrograms/adventofcode/2019/Day2/bin/Debug/netcoreapp2.2/Day2.deps.json -C:/EliasPrograms/adventofcode/2019/Day2/bin/Debug/netcoreapp2.2/Day2.runtimeconfig.json -C:/EliasPrograms/adventofcode/2019/Day2/bin/Debug/netcoreapp2.2/Day2.runtimeconfig.dev.json -C:/EliasPrograms/adventofcode/2019/Day2/bin/Debug/netcoreapp2.2/Day2.dll -C:/EliasPrograms/adventofcode/2019/Day2/bin/Debug/netcoreapp2.2/Day2.pdb -C:/EliasPrograms/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.dll -C:/EliasPrograms/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.pdb /home/elal/Projects/adventofcode/2019/Day2/bin/Debug/netcoreapp2.2/Day2.deps.json /home/elal/Projects/adventofcode/2019/Day2/bin/Debug/netcoreapp2.2/Day2.runtimeconfig.json /home/elal/Projects/adventofcode/2019/Day2/bin/Debug/netcoreapp2.2/Day2.runtimeconfig.dev.json @@ -20,3 +9,14 @@ C:/EliasPrograms/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.pdb /home/elal/Projects/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.AssemblyInfo.cs /home/elal/Projects/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.dll /home/elal/Projects/adventofcode/2019/Day2/obj/Debug/netcoreapp2.2/Day2.pdb +C:\EliasPrograms\AdventOfCode\2019\Day2\bin\Debug\netcoreapp2.2\Day2.deps.json +C:\EliasPrograms\AdventOfCode\2019\Day2\bin\Debug\netcoreapp2.2\Day2.runtimeconfig.json +C:\EliasPrograms\AdventOfCode\2019\Day2\bin\Debug\netcoreapp2.2\Day2.runtimeconfig.dev.json +C:\EliasPrograms\AdventOfCode\2019\Day2\bin\Debug\netcoreapp2.2\Day2.dll +C:\EliasPrograms\AdventOfCode\2019\Day2\bin\Debug\netcoreapp2.2\Day2.pdb +C:\EliasPrograms\AdventOfCode\2019\Day2\obj\Debug\netcoreapp2.2\Day2.csprojAssemblyReference.cache +C:\EliasPrograms\AdventOfCode\2019\Day2\obj\Debug\netcoreapp2.2\Day2.csproj.CoreCompileInputs.cache +C:\EliasPrograms\AdventOfCode\2019\Day2\obj\Debug\netcoreapp2.2\Day2.AssemblyInfoInputs.cache +C:\EliasPrograms\AdventOfCode\2019\Day2\obj\Debug\netcoreapp2.2\Day2.AssemblyInfo.cs +C:\EliasPrograms\AdventOfCode\2019\Day2\obj\Debug\netcoreapp2.2\Day2.dll +C:\EliasPrograms\AdventOfCode\2019\Day2\obj\Debug\netcoreapp2.2\Day2.pdb diff --git a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csprojAssemblyReference.cache b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csprojAssemblyReference.cache index a0e07cd..a72e2a9 100644 Binary files a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csprojAssemblyReference.cache and b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.csprojAssemblyReference.cache differ diff --git a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.dll b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.dll index 38bbd21..c97a312 100644 Binary files a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.dll and b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.dll differ diff --git a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.pdb b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.pdb index 4131df7..3f14339 100644 Binary files a/2019/Day2/obj/Debug/netcoreapp2.2/Day2.pdb and b/2019/Day2/obj/Debug/netcoreapp2.2/Day2.pdb differ diff --git a/2019/Day2/obj/project.assets.json b/2019/Day2/obj/project.assets.json index c37314b..a1cc8a1 100644 --- a/2019/Day2/obj/project.assets.json +++ b/2019/Day2/obj/project.assets.json @@ -688,24 +688,30 @@ ] }, "packageFolders": { - "/home/elal/.nuget/packages/": {} + "C:\\Users\\elias.almqvist\\.nuget\\packages\\": {}, + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {} }, "project": { "version": "1.0.0", "restore": { - "projectUniqueName": "/home/elal/Projects/adventofcode/2019/Day2/Day2.csproj", + "projectUniqueName": "C:\\EliasPrograms\\AdventOfCode\\2019\\Day2\\Day2.csproj", "projectName": "Day2", - "projectPath": "/home/elal/Projects/adventofcode/2019/Day2/Day2.csproj", - "packagesPath": "/home/elal/.nuget/packages/", - "outputPath": "/home/elal/Projects/adventofcode/2019/Day2/obj/", + "projectPath": "C:\\EliasPrograms\\AdventOfCode\\2019\\Day2\\Day2.csproj", + "packagesPath": "C:\\Users\\elias.almqvist\\.nuget\\packages\\", + "outputPath": "C:\\EliasPrograms\\AdventOfCode\\2019\\Day2\\obj\\", "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" + ], "configFilePaths": [ - "/home/elal/.nuget/NuGet/NuGet.Config" + "C:\\Users\\elias.almqvist\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], "originalTargetFrameworks": [ "netcoreapp2.2" ], "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, "https://api.nuget.org/v3/index.json": {} }, "frameworks": {