From 577d1e3c5c0f8f4750d95e556f3d3e22db9871c9 Mon Sep 17 00:00:00 2001
From: bionic85 <144353436+bionic85@users.noreply.github.com>
Date: Wed, 13 Nov 2024 12:46:58 +0100
Subject: [PATCH] overzicht shit gedaan enzo yes

---
 PuzzlePlayer/Binair.cs                | 23 +++++++++++
 PuzzlePlayer/Board.cs                 | 18 +++++++++
 PuzzlePlayer/Class1.cs                | 11 ------
 PuzzlePlayer/PuzzleForm.cs            | 23 +++++++++++
 PuzzlePlayer/PuzzlePlayer.cs          | 56 ++++++++++++++++++---------
 PuzzlePlayer/PuzzlePlayer.csproj.user |  9 +++++
 6 files changed, 111 insertions(+), 29 deletions(-)
 create mode 100644 PuzzlePlayer/Binair.cs
 create mode 100644 PuzzlePlayer/Board.cs
 delete mode 100644 PuzzlePlayer/Class1.cs
 create mode 100644 PuzzlePlayer/PuzzleForm.cs
 create mode 100644 PuzzlePlayer/PuzzlePlayer.csproj.user

diff --git a/PuzzlePlayer/Binair.cs b/PuzzlePlayer/Binair.cs
new file mode 100644
index 0000000..9b37ee3
--- /dev/null
+++ b/PuzzlePlayer/Binair.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace PuzzlePlayer_Namespace
+{
+    internal class Binair : Board
+    {
+        public int[,] boardState { get; set; }
+
+        public static void Generate()
+        {
+            throw new NotImplementedException();
+        }
+
+        public static void Solve()
+        {
+            throw new NotImplementedException();
+        }
+    }
+}
diff --git a/PuzzlePlayer/Board.cs b/PuzzlePlayer/Board.cs
new file mode 100644
index 0000000..de744f5
--- /dev/null
+++ b/PuzzlePlayer/Board.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace PuzzlePlayer_Namespace
+{
+    public interface Board
+    {
+        int[,] boardState { get; set; }
+
+        public abstract static void Solve();
+
+        public abstract static void Generate();
+    }
+}
diff --git a/PuzzlePlayer/Class1.cs b/PuzzlePlayer/Class1.cs
deleted file mode 100644
index b154c70..0000000
--- a/PuzzlePlayer/Class1.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-public abstract class Board
-{
-    public void Teken() { }
-
-}
\ No newline at end of file
diff --git a/PuzzlePlayer/PuzzleForm.cs b/PuzzlePlayer/PuzzleForm.cs
new file mode 100644
index 0000000..cf60bf8
--- /dev/null
+++ b/PuzzlePlayer/PuzzleForm.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace PuzzlePlayer_Namespace
+{
+    internal class PuzzleForm : Form
+    {
+        public Button solvebutton;
+        public Button hintbutton;
+        public Button generatebutton;
+        public TextBox informationbox;
+
+        private Board board;
+        public PuzzleForm(Board b)
+        {
+            board = b;
+        }
+    }
+}
diff --git a/PuzzlePlayer/PuzzlePlayer.cs b/PuzzlePlayer/PuzzlePlayer.cs
index 96b3826..44011a4 100644
--- a/PuzzlePlayer/PuzzlePlayer.cs
+++ b/PuzzlePlayer/PuzzlePlayer.cs
@@ -1,29 +1,49 @@
 using System;
+using System.Collections.Generic;
 using System.Drawing;
 using System.Windows.Forms;
 
-class Program
+namespace PuzzlePlayer_Namespace
 {
-    internal static void Main(string[] args)
+    internal class Program
     {
-        Application.Run(new PuzzleForm());
+        internal static void Main(string[] args)
+        {
+            Application.Run(new MainForm());
+        }
     }
-}
-
-class MainForm : Form
-{
-    public Button sudoku;
-}
 
-class PuzzleForm : Form
-{
-    public Button solvebutton;
-    public Button hintbutton;
-    public Button generatebutton;
-    public TextBox informationbox;
-    public Board board;
-    public PuzzleForm()
+    internal class MainForm : Form
     {
+        List<PuzzleForm> puzzleForms = new List<PuzzleForm>();
+
+        public Panel buttonsPanel;
+        public Button[] buttons;
+        
+
+        public MainForm()
+        {
+            this.ClientSize = new Size(1000, 500);
 
+
+            SetUpPuzzleForms();
+            SetUpUI();
+        }
+
+        
+        private void SetUpPuzzleForms()
+        {
+            puzzleForms.Add(new PuzzleForm(new Binair()));
+        }
+
+        private void SetUpUI()
+        {
+            buttons = new Button[puzzleForms.Count];
+            
+            //binair.
+        }
     }
-}
\ No newline at end of file
+
+    
+}
+
diff --git a/PuzzlePlayer/PuzzlePlayer.csproj.user b/PuzzlePlayer/PuzzlePlayer.csproj.user
new file mode 100644
index 0000000..48013b9
--- /dev/null
+++ b/PuzzlePlayer/PuzzlePlayer.csproj.user
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup />
+  <ItemGroup>
+    <Compile Update="PuzzleForm.cs">
+      <SubType>Form</SubType>
+    </Compile>
+  </ItemGroup>
+</Project>
\ No newline at end of file
-- 
GitLab