commit 5383214097d12fb30f7bac31ae1a26976f56900a Author: thewarrior1220 Date: Tue Apr 5 15:08:51 2022 +0200 sor ell oszlop ell diff --git a/.vs/Sakk/v17/.suo b/.vs/Sakk/v17/.suo new file mode 100644 index 0000000..fc92bc5 Binary files /dev/null and b/.vs/Sakk/v17/.suo differ diff --git a/Sakk.sln b/Sakk.sln new file mode 100644 index 0000000..c05a6a6 --- /dev/null +++ b/Sakk.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32319.34 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sakk", "Sakk\Sakk.csproj", "{D58A69DD-68B9-4280-8DDD-57B73B4EAC21}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D58A69DD-68B9-4280-8DDD-57B73B4EAC21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D58A69DD-68B9-4280-8DDD-57B73B4EAC21}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D58A69DD-68B9-4280-8DDD-57B73B4EAC21}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D58A69DD-68B9-4280-8DDD-57B73B4EAC21}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {36343034-55C4-4E97-94D5-86696CF34C39} + EndGlobalSection +EndGlobal diff --git a/Sakk/App.config b/Sakk/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Sakk/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Sakk/Program.cs b/Sakk/Program.cs new file mode 100644 index 0000000..12e0539 --- /dev/null +++ b/Sakk/Program.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Sakk { + internal class Program { + private static int[,] tabla = new int[8, 8]; + + public static bool oszlopEllenorzes(int y_index) { + for (int x = 0; x < tabla.GetLength(0); x++) + if (tabla[x, y_index] != 0) //megvizsgaljuk, hogy az adott sorban van e mar babu + return false; //ha talaltunk babut return false + + return true; //ha nem adott vissza eddig semmit akkor adjon vissza igazat + } + + public static bool sorEllenorzes(int x_index) { + for (int y = 0; y < tabla.GetLength(0); y++) + if (tabla[x_index, y] != 0) //megvizsgaljuk az adott sort az oszlopban + return false; //ha talalt babut akkor return false + + return true; //ha nem talalt sehol se babut akkor return true + } + + static void Main(string[] args) { + int lehetosegek = 0; + + for (int i = 0; i < tabla.GetLength(0); i++) { + for (int j = 0; j < tabla.GetLength(1); j++) { + + } + } + + + Console.ReadKey(); + } + } +} diff --git a/Sakk/Properties/AssemblyInfo.cs b/Sakk/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ade97d7 --- /dev/null +++ b/Sakk/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Sakk")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Sakk")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d58a69dd-68b9-4280-8ddd-57b73b4eac21")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Sakk/Sakk.csproj b/Sakk/Sakk.csproj new file mode 100644 index 0000000..167c22d --- /dev/null +++ b/Sakk/Sakk.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {D58A69DD-68B9-4280-8DDD-57B73B4EAC21} + Exe + Sakk + Sakk + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Sakk/bin/Debug/Sakk.exe b/Sakk/bin/Debug/Sakk.exe new file mode 100644 index 0000000..148ca56 Binary files /dev/null and b/Sakk/bin/Debug/Sakk.exe differ diff --git a/Sakk/bin/Debug/Sakk.exe.config b/Sakk/bin/Debug/Sakk.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Sakk/bin/Debug/Sakk.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Sakk/bin/Debug/Sakk.pdb b/Sakk/bin/Debug/Sakk.pdb new file mode 100644 index 0000000..c2e6e3d Binary files /dev/null and b/Sakk/bin/Debug/Sakk.pdb differ diff --git a/Sakk/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/Sakk/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/Sakk/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/Sakk/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Sakk/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..53ff004 Binary files /dev/null and b/Sakk/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Sakk/obj/Debug/Sakk.csproj.AssemblyReference.cache b/Sakk/obj/Debug/Sakk.csproj.AssemblyReference.cache new file mode 100644 index 0000000..126ed02 Binary files /dev/null and b/Sakk/obj/Debug/Sakk.csproj.AssemblyReference.cache differ diff --git a/Sakk/obj/Debug/Sakk.csproj.CoreCompileInputs.cache b/Sakk/obj/Debug/Sakk.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/Sakk/obj/Debug/Sakk.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/Sakk/obj/Debug/Sakk.csproj.FileListAbsolute.txt b/Sakk/obj/Debug/Sakk.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..137f8f0 --- /dev/null +++ b/Sakk/obj/Debug/Sakk.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +C:\dev\c#\Sakk\Sakk\obj\Debug\Sakk.csproj.AssemblyReference.cache +C:\dev\c#\Sakk\Sakk\obj\Debug\Sakk.csproj.SuggestedBindingRedirects.cache +C:\dev\c#\Sakk\Sakk\obj\Debug\Sakk.csproj.CoreCompileInputs.cache +C:\dev\c#\Sakk\Sakk\bin\Debug\Sakk.exe.config +C:\dev\c#\Sakk\Sakk\bin\Debug\Sakk.exe +C:\dev\c#\Sakk\Sakk\bin\Debug\Sakk.pdb +C:\dev\c#\Sakk\Sakk\obj\Debug\Sakk.exe +C:\dev\c#\Sakk\Sakk\obj\Debug\Sakk.pdb diff --git a/Sakk/obj/Debug/Sakk.csproj.SuggestedBindingRedirects.cache b/Sakk/obj/Debug/Sakk.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/Sakk/obj/Debug/Sakk.exe b/Sakk/obj/Debug/Sakk.exe new file mode 100644 index 0000000..148ca56 Binary files /dev/null and b/Sakk/obj/Debug/Sakk.exe differ diff --git a/Sakk/obj/Debug/Sakk.pdb b/Sakk/obj/Debug/Sakk.pdb new file mode 100644 index 0000000..c2e6e3d Binary files /dev/null and b/Sakk/obj/Debug/Sakk.pdb differ