diff --git a/Hanoitornyai.sln b/Hanoitornyai.sln
new file mode 100644
index 0000000..a47e1c8
--- /dev/null
+++ b/Hanoitornyai.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.8.34330.188
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hanoitornyai", "Hanoitornyai\Hanoitornyai.csproj", "{6C08DED2-E0DF-4211-B77A-4D86458CB8F9}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {6C08DED2-E0DF-4211-B77A-4D86458CB8F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6C08DED2-E0DF-4211-B77A-4D86458CB8F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6C08DED2-E0DF-4211-B77A-4D86458CB8F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6C08DED2-E0DF-4211-B77A-4D86458CB8F9}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {4F53BE82-3798-4A6B-B0CC-39F169B50EE0}
+ EndGlobalSection
+EndGlobal
diff --git a/Hanoitornyai/App.config b/Hanoitornyai/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/Hanoitornyai/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hanoitornyai/Form1.Designer.cs b/Hanoitornyai/Form1.Designer.cs
new file mode 100644
index 0000000..6a25f9a
--- /dev/null
+++ b/Hanoitornyai/Form1.Designer.cs
@@ -0,0 +1,73 @@
+namespace Hanoitornyai
+{
+ partial class Form1
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.JatekPanel = new System.Windows.Forms.Panel();
+ this.InfoPanel = new System.Windows.Forms.Panel();
+ this.SuspendLayout();
+ //
+ // JatekPanel
+ //
+ this.JatekPanel.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.JatekPanel.Location = new System.Drawing.Point(0, 0);
+ this.JatekPanel.Name = "JatekPanel";
+ this.JatekPanel.Size = new System.Drawing.Size(800, 450);
+ this.JatekPanel.TabIndex = 0;
+ this.JatekPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.Paint);
+ this.JatekPanel.Resize += new System.EventHandler(this.Form1_ResizeEnd);
+ //
+ // InfoPanel
+ //
+ this.InfoPanel.BackColor = System.Drawing.SystemColors.ScrollBar;
+ this.InfoPanel.Dock = System.Windows.Forms.DockStyle.Top;
+ this.InfoPanel.Location = new System.Drawing.Point(0, 0);
+ this.InfoPanel.Name = "InfoPanel";
+ this.InfoPanel.Size = new System.Drawing.Size(800, 56);
+ this.InfoPanel.TabIndex = 0;
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.InfoPanel);
+ this.Controls.Add(this.JatekPanel);
+ this.Name = "Form1";
+ this.Text = "Form1";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel JatekPanel;
+ private System.Windows.Forms.Panel InfoPanel;
+ }
+}
+
diff --git a/Hanoitornyai/Form1.cs b/Hanoitornyai/Form1.cs
new file mode 100644
index 0000000..64563d7
--- /dev/null
+++ b/Hanoitornyai/Form1.cs
@@ -0,0 +1,79 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Hanoitornyai
+{
+ public partial class Form1 : Form
+ {
+ public Rud[] rudak;
+ private Color[] kszinek = {Color.Red, Color.Orange, Color.Yellow, Color.Aqua, Color.Blue};
+ public Form1()
+ {
+ InitializeComponent();
+ rudak = new Rud[3];
+ for (int i = 0; i < rudak.Length; i++)
+ {
+ rudak[i] = new Rud(Color.Black);
+ }
+ for (int i = 0;i < kszinek.Length;i++)
+ {
+ rudak[0].korongok.Add(new Korong(kszinek[i]));
+ }
+ rudakPozicio();
+
+ }
+
+ private void Form1_ResizeEnd(object sender, EventArgs e)
+ {
+ //Initialize();
+ }
+
+ private void rudakPozicio()
+ {
+ float psz = JatekPanel.Width;
+ float pm = JatekPanel.Height;
+ float rm = pm * 0.75f;
+ float rsz = rm / 12;
+ float rkoz = (psz - (3 * rsz)) / 4;
+ for (int i = 0; i < rudak.Length; i++)
+ {
+ rudak[i].magassag = rm;
+ rudak[i].szelesseg = rsz;
+ rudak[i].y = pm / 4;
+ rudak[i].x = (rkoz*(i+1))+(i*rsz);
+ }
+ }
+ /*
+ public void Initialize()
+ {
+ Graphics g = JatekPanel.CreateGraphics();
+ g.Clear(Color.White);
+ Pen toll = new Pen(Color.Black);
+ Brush brush = new SolidBrush(Color.Black);
+ int egynegyed = JatekPanel.Width / 4;
+ int ketharmad = (JatekPanel.Height / 3) * 2;
+ g.FillRectangle(brush, new Rectangle(egynegyed - 10, JatekPanel.Height - ketharmad, 20, ketharmad));
+ g.FillRectangle(brush, new Rectangle(egynegyed * 2 - 10, JatekPanel.Height - ketharmad, 20, ketharmad));
+ g.FillRectangle(brush, new Rectangle(egynegyed * 3 - 10, JatekPanel.Height - ketharmad, 20, ketharmad));
+ g.FillRectangle(brush, new Rectangle(0, JatekPanel.Height - 20, JatekPanel.Width, 20));
+
+ }*/
+ private void Paint(object sender, PaintEventArgs e)
+ {
+
+ Graphics g = JatekPanel.CreateGraphics();
+ Brush brush = new SolidBrush(rudak[0].szin);
+ for (int i = 0; i < rudak.Length; i++)
+ {
+ g.FillRectangle(brush, rudak[i].x, rudak[i].y, rudak[i].szelesseg, rudak[i].magassag);
+ }
+ }
+ }
+}
diff --git a/Hanoitornyai/Form1.resx b/Hanoitornyai/Form1.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Hanoitornyai/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Hanoitornyai/Hanoitornyai.csproj b/Hanoitornyai/Hanoitornyai.csproj
new file mode 100644
index 0000000..61ef3da
--- /dev/null
+++ b/Hanoitornyai/Hanoitornyai.csproj
@@ -0,0 +1,85 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {6C08DED2-E0DF-4211-B77A-4D86458CB8F9}
+ WinExe
+ Hanoitornyai
+ Hanoitornyai
+ v4.7.2
+ 512
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.cs
+
+
+
+
+
+
+ Form1.cs
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hanoitornyai/Korong.cs b/Hanoitornyai/Korong.cs
new file mode 100644
index 0000000..25899e7
--- /dev/null
+++ b/Hanoitornyai/Korong.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Security.Cryptography.X509Certificates;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Hanoitornyai
+{
+ public class Korong
+ {
+ public Color szin { get; set; }
+ public float szelesseg { get; set; }
+ public float magassag { get; set; }
+ public float x { get; set; }
+ public float y { get; set; }
+ public Korong(Color szin)
+ {
+ this.szin = szin;
+ }
+ }
+}
diff --git a/Hanoitornyai/Program.cs b/Hanoitornyai/Program.cs
new file mode 100644
index 0000000..9c4391b
--- /dev/null
+++ b/Hanoitornyai/Program.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Hanoitornyai
+{
+ internal static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new Form1());
+ }
+ }
+}
diff --git a/Hanoitornyai/Properties/AssemblyInfo.cs b/Hanoitornyai/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..bac46f0
--- /dev/null
+++ b/Hanoitornyai/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("Hanoitornyai")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Hanoitornyai")]
+[assembly: AssemblyCopyright("Copyright © 2024")]
+[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("6c08ded2-e0df-4211-b77a-4d86458cb8f9")]
+
+// 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/Hanoitornyai/Properties/Resources.Designer.cs b/Hanoitornyai/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..5f27c9a
--- /dev/null
+++ b/Hanoitornyai/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+namespace Hanoitornyai.Properties
+{
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Hanoitornyai.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/Hanoitornyai/Properties/Resources.resx b/Hanoitornyai/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/Hanoitornyai/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Hanoitornyai/Properties/Settings.Designer.cs b/Hanoitornyai/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..b405b9a
--- /dev/null
+++ b/Hanoitornyai/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+namespace Hanoitornyai.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/Hanoitornyai/Properties/Settings.settings b/Hanoitornyai/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/Hanoitornyai/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/Hanoitornyai/Rud.cs b/Hanoitornyai/Rud.cs
new file mode 100644
index 0000000..bacb0ac
--- /dev/null
+++ b/Hanoitornyai/Rud.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Hanoitornyai
+{
+ public class Rud
+ {
+ public Color szin { get; set; }
+ public float szelesseg { get; set; }
+ public float magassag { get; set; }
+ public float x { get; set; }
+ public float y { get; set; }
+ public List korongok { get; set; }
+ public Rud(Color szin)
+ {
+ this.szin = szin;
+ korongok = new List();
+ }
+ }
+}