Add project files.
This commit is contained in:
25
OsztoProgram.sln
Normal file
25
OsztoProgram.sln
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.13.35931.197 d17.13
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OsztoProgram", "OsztoProgram\OsztoProgram.csproj", "{E8BCC20E-3070-449C-805D-963A03658B8A}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{E8BCC20E-3070-449C-805D-963A03658B8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{E8BCC20E-3070-449C-805D-963A03658B8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{E8BCC20E-3070-449C-805D-963A03658B8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{E8BCC20E-3070-449C-805D-963A03658B8A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {56E6C5CC-87AC-4ACE-B251-8C03B8ADBD82}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
6
OsztoProgram/App.config
Normal file
6
OsztoProgram/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>
|
||||||
29
OsztoProgram/Csomag.cs
Normal file
29
OsztoProgram/Csomag.cs
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace OsztoProgram
|
||||||
|
{
|
||||||
|
internal class Csomag
|
||||||
|
{
|
||||||
|
public Kartyalap[] Lapok;
|
||||||
|
public Csomag()
|
||||||
|
{
|
||||||
|
Lapok = new Kartyalap[52];
|
||||||
|
//kártyalapok létrehozása:
|
||||||
|
string[] színek = { "pikk", "kör", "káró", "treff" };
|
||||||
|
string[] ertekek = { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A" };
|
||||||
|
int lapindex = 0;
|
||||||
|
foreach (string szín in színek)
|
||||||
|
{
|
||||||
|
foreach(string ertek in ertekek)
|
||||||
|
{
|
||||||
|
Lapok[lapindex] = new Kartyalap(szín, ertek);
|
||||||
|
lapindex++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
19
OsztoProgram/Jatekos.cs
Normal file
19
OsztoProgram/Jatekos.cs
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace OsztoProgram
|
||||||
|
{
|
||||||
|
internal class Jatekos
|
||||||
|
{
|
||||||
|
public Kartyalap[] Lapok;
|
||||||
|
public string Nev;
|
||||||
|
|
||||||
|
public Jatekos(string Nev)
|
||||||
|
{
|
||||||
|
this.Nev = Nev;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
20
OsztoProgram/Kartyalap.cs
Normal file
20
OsztoProgram/Kartyalap.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace OsztoProgram
|
||||||
|
{
|
||||||
|
internal class Kartyalap
|
||||||
|
{
|
||||||
|
public string Szin;
|
||||||
|
public string Ertek;
|
||||||
|
|
||||||
|
public Kartyalap(string Szin, string Ertek)
|
||||||
|
{
|
||||||
|
this.Szin = Szin;
|
||||||
|
this.Ertek = Ertek;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
OsztoProgram/Oszto.cs
Normal file
42
OsztoProgram/Oszto.cs
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace OsztoProgram
|
||||||
|
{
|
||||||
|
internal class Oszto
|
||||||
|
{
|
||||||
|
public Csomag Pakli;
|
||||||
|
public Jatekos[] Jatekosok;
|
||||||
|
public int Osztottlapok; // egy játékosnak hány lapot kell adni
|
||||||
|
public int JatekosokSzama;
|
||||||
|
public int Hanyasaval; //hanyasaval kell a lapokat kiosztani
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
/*Csomag cs = new Csomag();
|
||||||
|
Console.WriteLine(cs.Lapok[0].Szin + " -" + cs.Lapok[0].Ertek);
|
||||||
|
Console.WriteLine(cs.Lapok[25].Szin + " -" + cs.Lapok[25].Ertek);
|
||||||
|
Console.WriteLine(cs.Lapok[50].Szin + " -" + cs.Lapok[50].Ertek);*/
|
||||||
|
Oszto osztoprogram = new Oszto();
|
||||||
|
osztoprogram.Bekeres();
|
||||||
|
|
||||||
|
}
|
||||||
|
public Oszto()
|
||||||
|
|
||||||
|
{
|
||||||
|
Pakli = new Csomag();
|
||||||
|
}
|
||||||
|
public void Bekeres()
|
||||||
|
{
|
||||||
|
Console.WriteLine("Hány játékosnak osszak?(1-4");
|
||||||
|
JatekosokSzama = int.Parse(Console.ReadLine());
|
||||||
|
Console.WriteLine("Hány lapot kapjon egy játékos?");
|
||||||
|
Osztottlapok = int.Parse(Console.ReadLine());
|
||||||
|
Console.WriteLine("Hanyasával osszam a lapokat?");
|
||||||
|
Hanyasaval = int.Parse(Console.ReadLine());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
56
OsztoProgram/OsztoProgram.csproj
Normal file
56
OsztoProgram/OsztoProgram.csproj
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
<?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>{E8BCC20E-3070-449C-805D-963A03658B8A}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>OsztoProgram</RootNamespace>
|
||||||
|
<AssemblyName>OsztoProgram</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="Csomag.cs" />
|
||||||
|
<Compile Include="Jatekos.cs" />
|
||||||
|
<Compile Include="Kartyalap.cs" />
|
||||||
|
<Compile Include="Oszto.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
33
OsztoProgram/Properties/AssemblyInfo.cs
Normal file
33
OsztoProgram/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
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("OsztoProgram")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("OsztoProgram")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2025")]
|
||||||
|
[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("e8bcc20e-3070-449c-805d-963a03658b8a")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
Reference in New Issue
Block a user