diff --git a/.gitignore.txt b/.gitignore similarity index 100% rename from .gitignore.txt rename to .gitignore diff --git a/ora1gyak/Keres.cs b/ora1gyak/Keres.cs new file mode 100644 index 0000000..bf2384b --- /dev/null +++ b/ora1gyak/Keres.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Keres{ + abstract class Feladat { + public T Kezdo { get; } + public T Cel{ get; protected set;} + + public Feladat(T kezdo, T cel){ + Kezdo = kezdo; + Cel = cel; + } + + public virtual bool Celteszt(T allapot){ + return EqualityComparer.Default.Equals(allapot, Cel); + } + public abstract IEnumerable<(string, T)> Rakovetkezo(T allapot); + + public virtual int Utkoltseg(int c, T allapot1, string lepes, T allapot2){ + return c+1; + } + } + + + public class Csucs{ + + } + +} \ No newline at end of file diff --git a/ora1gyak/Program.cs b/ora1gyak/Program.cs new file mode 100644 index 0000000..a3ff445 --- /dev/null +++ b/ora1gyak/Program.cs @@ -0,0 +1,5 @@ +public class Program{ + public static void Main(String[] args) { + Console.WriteLine("Hello World"); + } +} \ No newline at end of file diff --git a/ora1gyak/Seged.cs b/ora1gyak/Seged.cs new file mode 100644 index 0000000..8020ee9 --- /dev/null +++ b/ora1gyak/Seged.cs @@ -0,0 +1,122 @@ +using System.Collections.Generic; +using System; + +namespace Seged +{ + class Varolista + { + private List list; + + public Varolista() + { + list = new List(); + } + + public void Extend(List list) + { + foreach (var item in list) + { + this.list.Add(item); + } + } + + public List GetList() + { + return list; + } + + public void SetList(List list) + { + this.list = list; + } + } + + class Sor : Varolista + { + private int kezdo = 0; + + public void Append(T item) + { + List value = new List { item }; + Extend(value); + } + + public int Length() + { + return GetList().Count - kezdo; + } + + public T Pop() + { + T e = GetList()[kezdo++]; + + if (kezdo > 5 && kezdo > GetList().Count / 2) + { + SetList(GetList().GetRange(kezdo, GetList().Count - kezdo)); + kezdo = 0; + } + + return e; + } + } + + class RLElem + { + private readonly int ertek; + private readonly T elem; + + public int GetErtek() + { + return ertek; + } + public T Elem() + { + return elem; + } + + public RLElem(int ertek, T elem) + { + this.ertek = ertek; + this.elem = elem; + } + + public bool lt(int other) + { + return ertek < other; + } + } + + class RendezettLista : Varolista + { + private readonly Func f; // Sorting function + + public RendezettLista(Func f) + { + this.f = f; + } + + public void Append(T elem) + { + var par = new RLElem(f(elem), elem); + List> list = GetList().ConvertAll(e => new RLElem(f(e), e)); + + int index = list.BinarySearch(par, Comparer>.Create((a, b) => a.GetErtek().CompareTo(b.GetErtek()))); + if (index < 0) index = ~index; // Get correct insertion position + list.Insert(index, par); // Insert at sorted position + + SetList(list.ConvertAll(e => e.Elem())); // Convert back to original type + } + + public T Pop() + { + List list = GetList(); + if (list.Count == 0) throw new InvalidOperationException("The list is empty."); + + T elem = list[0]; + list.RemoveAt(0); + SetList(list); + + return elem; + } + } +} \ No newline at end of file diff --git a/ora1gyak/bin/Debug/net8.0/ora1gyak b/ora1gyak/bin/Debug/net8.0/ora1gyak new file mode 100755 index 0000000..cdb05a4 Binary files /dev/null and b/ora1gyak/bin/Debug/net8.0/ora1gyak differ diff --git a/ora1gyak/bin/Debug/net8.0/ora1gyak.deps.json b/ora1gyak/bin/Debug/net8.0/ora1gyak.deps.json new file mode 100644 index 0000000..96fd84d --- /dev/null +++ b/ora1gyak/bin/Debug/net8.0/ora1gyak.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "ora1gyak/1.0.0": { + "runtime": { + "ora1gyak.dll": {} + } + } + } + }, + "libraries": { + "ora1gyak/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/ora1gyak/bin/Debug/net8.0/ora1gyak.dll b/ora1gyak/bin/Debug/net8.0/ora1gyak.dll new file mode 100644 index 0000000..d43345b Binary files /dev/null and b/ora1gyak/bin/Debug/net8.0/ora1gyak.dll differ diff --git a/ora1gyak/bin/Debug/net8.0/ora1gyak.pdb b/ora1gyak/bin/Debug/net8.0/ora1gyak.pdb new file mode 100644 index 0000000..c701a94 Binary files /dev/null and b/ora1gyak/bin/Debug/net8.0/ora1gyak.pdb differ diff --git a/ora1gyak/bin/Debug/net8.0/ora1gyak.runtimeconfig.json b/ora1gyak/bin/Debug/net8.0/ora1gyak.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/ora1gyak/bin/Debug/net8.0/ora1gyak.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/ora1gyak/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/ora1gyak/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/ora1gyak/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/ora1gyak/obj/Debug/net8.0/apphost b/ora1gyak/obj/Debug/net8.0/apphost new file mode 100755 index 0000000..cdb05a4 Binary files /dev/null and b/ora1gyak/obj/Debug/net8.0/apphost differ diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.AssemblyInfo.cs b/ora1gyak/obj/Debug/net8.0/ora1gyak.AssemblyInfo.cs new file mode 100644 index 0000000..6dc2774 --- /dev/null +++ b/ora1gyak/obj/Debug/net8.0/ora1gyak.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("ora1gyak")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8c373e7d5620b80df629e5851ca3542a784386f9")] +[assembly: System.Reflection.AssemblyProductAttribute("ora1gyak")] +[assembly: System.Reflection.AssemblyTitleAttribute("ora1gyak")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.AssemblyInfoInputs.cache b/ora1gyak/obj/Debug/net8.0/ora1gyak.AssemblyInfoInputs.cache new file mode 100644 index 0000000..59f5694 --- /dev/null +++ b/ora1gyak/obj/Debug/net8.0/ora1gyak.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +e7ca40aec6b04e9f591e0faf4b64578af1c3bec275a11809e6c94bfec5b8b9ef diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.GeneratedMSBuildEditorConfig.editorconfig b/ora1gyak/obj/Debug/net8.0/ora1gyak.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..333c5b4 --- /dev/null +++ b/ora1gyak/obj/Debug/net8.0/ora1gyak.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 = ora1gyak +build_property.ProjectDir = /home/tom/Dev/mestint/ora1gyak/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.GlobalUsings.g.cs b/ora1gyak/obj/Debug/net8.0/ora1gyak.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/ora1gyak/obj/Debug/net8.0/ora1gyak.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/ora1gyak/obj/Debug/net8.0/ora1gyak.assets.cache b/ora1gyak/obj/Debug/net8.0/ora1gyak.assets.cache new file mode 100644 index 0000000..f4d9151 Binary files /dev/null and b/ora1gyak/obj/Debug/net8.0/ora1gyak.assets.cache differ diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.csproj.CoreCompileInputs.cache b/ora1gyak/obj/Debug/net8.0/ora1gyak.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..0b86ba6 --- /dev/null +++ b/ora1gyak/obj/Debug/net8.0/ora1gyak.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +58c3a24b8ebc449cdc625d4897d827855bcb1f4e129dd4b4f5460053ed60e85d diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.csproj.FileListAbsolute.txt b/ora1gyak/obj/Debug/net8.0/ora1gyak.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..29694c0 --- /dev/null +++ b/ora1gyak/obj/Debug/net8.0/ora1gyak.csproj.FileListAbsolute.txt @@ -0,0 +1,15 @@ +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/ora1gyak.GeneratedMSBuildEditorConfig.editorconfig +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/ora1gyak.AssemblyInfoInputs.cache +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/ora1gyak.AssemblyInfo.cs +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/ora1gyak.csproj.CoreCompileInputs.cache +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/ora1gyak.sourcelink.json +/home/tom/Dev/mestint/ora1gyak/bin/Debug/net8.0/ora1gyak +/home/tom/Dev/mestint/ora1gyak/bin/Debug/net8.0/ora1gyak.deps.json +/home/tom/Dev/mestint/ora1gyak/bin/Debug/net8.0/ora1gyak.runtimeconfig.json +/home/tom/Dev/mestint/ora1gyak/bin/Debug/net8.0/ora1gyak.dll +/home/tom/Dev/mestint/ora1gyak/bin/Debug/net8.0/ora1gyak.pdb +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/ora1gyak.dll +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/refint/ora1gyak.dll +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/ora1gyak.pdb +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/ora1gyak.genruntimeconfig.cache +/home/tom/Dev/mestint/ora1gyak/obj/Debug/net8.0/ref/ora1gyak.dll diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.dll b/ora1gyak/obj/Debug/net8.0/ora1gyak.dll new file mode 100644 index 0000000..d43345b Binary files /dev/null and b/ora1gyak/obj/Debug/net8.0/ora1gyak.dll differ diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.genruntimeconfig.cache b/ora1gyak/obj/Debug/net8.0/ora1gyak.genruntimeconfig.cache new file mode 100644 index 0000000..a720ebc --- /dev/null +++ b/ora1gyak/obj/Debug/net8.0/ora1gyak.genruntimeconfig.cache @@ -0,0 +1 @@ +00c58dbc257927f48ee145ad6916648f2e700d8dfb2cd12774e6b25a442996cc diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.pdb b/ora1gyak/obj/Debug/net8.0/ora1gyak.pdb new file mode 100644 index 0000000..c701a94 Binary files /dev/null and b/ora1gyak/obj/Debug/net8.0/ora1gyak.pdb differ diff --git a/ora1gyak/obj/Debug/net8.0/ora1gyak.sourcelink.json b/ora1gyak/obj/Debug/net8.0/ora1gyak.sourcelink.json new file mode 100644 index 0000000..c414ce8 --- /dev/null +++ b/ora1gyak/obj/Debug/net8.0/ora1gyak.sourcelink.json @@ -0,0 +1 @@ +{"documents":{"/home/tom/Dev/mestint/*":"https://raw.githubusercontent.com/htamas1210/mestint/8c373e7d5620b80df629e5851ca3542a784386f9/*"}} \ No newline at end of file diff --git a/ora1gyak/obj/Debug/net8.0/ref/ora1gyak.dll b/ora1gyak/obj/Debug/net8.0/ref/ora1gyak.dll new file mode 100644 index 0000000..e8f6cc5 Binary files /dev/null and b/ora1gyak/obj/Debug/net8.0/ref/ora1gyak.dll differ diff --git a/ora1gyak/obj/Debug/net8.0/refint/ora1gyak.dll b/ora1gyak/obj/Debug/net8.0/refint/ora1gyak.dll new file mode 100644 index 0000000..e8f6cc5 Binary files /dev/null and b/ora1gyak/obj/Debug/net8.0/refint/ora1gyak.dll differ diff --git a/ora1gyak/obj/ora1gyak.csproj.nuget.dgspec.json b/ora1gyak/obj/ora1gyak.csproj.nuget.dgspec.json new file mode 100644 index 0000000..556bf91 --- /dev/null +++ b/ora1gyak/obj/ora1gyak.csproj.nuget.dgspec.json @@ -0,0 +1,61 @@ +{ + "format": 1, + "restore": { + "/home/tom/Dev/mestint/ora1gyak/ora1gyak.csproj": {} + }, + "projects": { + "/home/tom/Dev/mestint/ora1gyak/ora1gyak.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/tom/Dev/mestint/ora1gyak/ora1gyak.csproj", + "projectName": "ora1gyak", + "projectPath": "/home/tom/Dev/mestint/ora1gyak/ora1gyak.csproj", + "packagesPath": "/home/tom/.nuget/packages/", + "outputPath": "/home/tom/Dev/mestint/ora1gyak/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/tom/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "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": "/usr/lib/dotnet/sdk/8.0.112/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/ora1gyak/obj/ora1gyak.csproj.nuget.g.props b/ora1gyak/obj/ora1gyak.csproj.nuget.g.props new file mode 100644 index 0000000..a81fe40 --- /dev/null +++ b/ora1gyak/obj/ora1gyak.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /home/tom/.nuget/packages/ + /home/tom/.nuget/packages/ + PackageReference + 6.8.1 + + + + + \ No newline at end of file diff --git a/ora1gyak/obj/ora1gyak.csproj.nuget.g.targets b/ora1gyak/obj/ora1gyak.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/ora1gyak/obj/ora1gyak.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/ora1gyak/obj/project.assets.json b/ora1gyak/obj/project.assets.json new file mode 100644 index 0000000..73d64d5 --- /dev/null +++ b/ora1gyak/obj/project.assets.json @@ -0,0 +1,66 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "/home/tom/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/tom/Dev/mestint/ora1gyak/ora1gyak.csproj", + "projectName": "ora1gyak", + "projectPath": "/home/tom/Dev/mestint/ora1gyak/ora1gyak.csproj", + "packagesPath": "/home/tom/.nuget/packages/", + "outputPath": "/home/tom/Dev/mestint/ora1gyak/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/tom/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "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": "/usr/lib/dotnet/sdk/8.0.112/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/ora1gyak/obj/project.nuget.cache b/ora1gyak/obj/project.nuget.cache new file mode 100644 index 0000000..95d5a1e --- /dev/null +++ b/ora1gyak/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "6++IdPzGwkAIg/uzl5ldolEqJu61iAjLnWh+qV2PgIiRbX9Ix9XOBePbaLs9qaF5jyMOOgmAOXn3h9eMTkHlaA==", + "success": true, + "projectFilePath": "/home/tom/Dev/mestint/ora1gyak/ora1gyak.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/ora1gyak/ora1gyak.csproj b/ora1gyak/ora1gyak.csproj new file mode 100644 index 0000000..2150e37 --- /dev/null +++ b/ora1gyak/ora1gyak.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/ora1gyak/ora1gyak.sln b/ora1gyak/ora1gyak.sln new file mode 100644 index 0000000..d92d456 --- /dev/null +++ b/ora1gyak/ora1gyak.sln @@ -0,0 +1,24 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ora1gyak", "ora1gyak.csproj", "{D42A19B6-75D8-4289-8C97-DAE2849838B0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D42A19B6-75D8-4289-8C97-DAE2849838B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D42A19B6-75D8-4289-8C97-DAE2849838B0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D42A19B6-75D8-4289-8C97-DAE2849838B0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D42A19B6-75D8-4289-8C97-DAE2849838B0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {01549981-9189-4D13-901E-FEEAD2027EB3} + EndGlobalSection +EndGlobal