sor ell oszlop ell
This commit is contained in:
BIN
.vs/Sakk/v17/.suo
Normal file
BIN
.vs/Sakk/v17/.suo
Normal file
Binary file not shown.
25
Sakk.sln
Normal file
25
Sakk.sln
Normal file
@@ -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
|
||||
6
Sakk/App.config
Normal file
6
Sakk/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
40
Sakk/Program.cs
Normal file
40
Sakk/Program.cs
Normal file
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Sakk/Properties/AssemblyInfo.cs
Normal file
36
Sakk/Properties/AssemblyInfo.cs
Normal file
@@ -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")]
|
||||
53
Sakk/Sakk.csproj
Normal file
53
Sakk/Sakk.csproj
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{D58A69DD-68B9-4280-8DDD-57B73B4EAC21}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>Sakk</RootNamespace>
|
||||
<AssemblyName>Sakk</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
BIN
Sakk/bin/Debug/Sakk.exe
Normal file
BIN
Sakk/bin/Debug/Sakk.exe
Normal file
Binary file not shown.
6
Sakk/bin/Debug/Sakk.exe.config
Normal file
6
Sakk/bin/Debug/Sakk.exe.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
Sakk/bin/Debug/Sakk.pdb
Normal file
BIN
Sakk/bin/Debug/Sakk.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
BIN
Sakk/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
BIN
Sakk/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
Binary file not shown.
BIN
Sakk/obj/Debug/Sakk.csproj.AssemblyReference.cache
Normal file
BIN
Sakk/obj/Debug/Sakk.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
1
Sakk/obj/Debug/Sakk.csproj.CoreCompileInputs.cache
Normal file
1
Sakk/obj/Debug/Sakk.csproj.CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
||||
7f4b213b428f4c013f19137338418ee1f5525793
|
||||
8
Sakk/obj/Debug/Sakk.csproj.FileListAbsolute.txt
Normal file
8
Sakk/obj/Debug/Sakk.csproj.FileListAbsolute.txt
Normal file
@@ -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
|
||||
BIN
Sakk/obj/Debug/Sakk.exe
Normal file
BIN
Sakk/obj/Debug/Sakk.exe
Normal file
Binary file not shown.
BIN
Sakk/obj/Debug/Sakk.pdb
Normal file
BIN
Sakk/obj/Debug/Sakk.pdb
Normal file
Binary file not shown.
Reference in New Issue
Block a user