summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2020-09-02 11:08:17 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2020-09-02 11:08:17 +0200
commit4811afb52c511565d2b13f36ed645243c7557803 (patch)
tree3533dc4a8dfb5ed610033e0b9c527a535be6143b
board generation
-rw-r--r--.vs/Chess/v16/.suobin0 -> 71168 bytes
-rw-r--r--App.config6
-rw-r--r--BoardTile.cs38
-rw-r--r--Chess.csproj124
-rw-r--r--Chess.sln25
-rw-r--r--ChessBoard.cs96
-rw-r--r--ChessPiece.cs50
-rw-r--r--MainForm.Designer.cs64
-rw-r--r--MainForm.cs40
-rw-r--r--MainForm.resx120
-rw-r--r--Pieces/Pawn.cs34
-rw-r--r--Program.cs22
-rw-r--r--Properties/AssemblyInfo.cs36
-rw-r--r--Properties/Resources.Designer.cs183
-rw-r--r--Properties/Resources.resx157
-rw-r--r--Properties/Settings.Designer.cs30
-rw-r--r--Properties/Settings.settings7
-rw-r--r--Resources/b_bishop_png_shadow_256px.pngbin0 -> 14988 bytes
-rw-r--r--Resources/b_king_png_shadow_256px.pngbin0 -> 16129 bytes
-rw-r--r--Resources/b_knight_png_shadow_256px.pngbin0 -> 14644 bytes
-rw-r--r--Resources/b_pawn_png_shadow_256px.pngbin0 -> 11103 bytes
-rw-r--r--Resources/b_queen_png_shadow_256px.pngbin0 -> 22197 bytes
-rw-r--r--Resources/b_rook_png_shadow_256px.pngbin0 -> 7333 bytes
-rw-r--r--Resources/w_bishop_png_shadow_256px.pngbin0 -> 12556 bytes
-rw-r--r--Resources/w_king_png_shadow_256px.pngbin0 -> 13604 bytes
-rw-r--r--Resources/w_knight_png_shadow_256px.pngbin0 -> 12268 bytes
-rw-r--r--Resources/w_pawn_png_shadow_256px.pngbin0 -> 9327 bytes
-rw-r--r--Resources/w_queen_png_shadow_256px.pngbin0 -> 17961 bytes
-rw-r--r--Resources/w_rook_png_shadow_256px.pngbin0 -> 6969 bytes
-rw-r--r--bin/Debug/Chess.exebin0 -> 227328 bytes
-rw-r--r--bin/Debug/Chess.exe.config6
-rw-r--r--bin/Debug/Chess.pdbbin0 -> 56832 bytes
-rw-r--r--bin/Release/Chess.exebin0 -> 10752 bytes
-rw-r--r--bin/Release/Chess.exe.config6
-rw-r--r--bin/Release/Chess.pdbbin0 -> 50688 bytes
-rw-r--r--obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs4
-rw-r--r--obj/Debug/Chess.MainForm.resourcesbin0 -> 180 bytes
-rw-r--r--obj/Debug/Chess.Properties.Resources.resourcesbin0 -> 214315 bytes
-rw-r--r--obj/Debug/Chess.csproj.CoreCompileInputs.cache1
-rw-r--r--obj/Debug/Chess.csproj.FileListAbsolute-LAPTOP-B78JCJFS.txt9
-rw-r--r--obj/Debug/Chess.csproj.FileListAbsolute.txt10
-rw-r--r--obj/Debug/Chess.csproj.GenerateResource.cachebin0 -> 1709 bytes
-rw-r--r--obj/Debug/Chess.csprojAssemblyReference.cachebin0 -> 424 bytes
-rw-r--r--obj/Debug/Chess.exebin0 -> 227328 bytes
-rw-r--r--obj/Debug/Chess.pdbbin0 -> 56832 bytes
-rw-r--r--obj/Debug/DesignTimeResolveAssemblyReferences.cachebin0 -> 823 bytes
-rw-r--r--obj/Debug/DesignTimeResolveAssemblyReferencesInput.cachebin0 -> 9376 bytes
-rw-r--r--obj/Debug/TempPE/Properties.Resources.Designer.cs.dllbin0 -> 5632 bytes
-rw-r--r--obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs4
-rw-r--r--obj/Release/Chess.MainForm.resourcesbin0 -> 180 bytes
-rw-r--r--obj/Release/Chess.Properties.Resources.resourcesbin0 -> 180 bytes
-rw-r--r--obj/Release/Chess.csproj.CoreCompileInputs.cache1
-rw-r--r--obj/Release/Chess.csproj.FileListAbsolute.txt10
-rw-r--r--obj/Release/Chess.csproj.GenerateResource.cachebin0 -> 1015 bytes
-rw-r--r--obj/Release/Chess.csprojAssemblyReference.cachebin0 -> 424 bytes
-rw-r--r--obj/Release/Chess.exebin0 -> 10752 bytes
-rw-r--r--obj/Release/Chess.pdbbin0 -> 50688 bytes
-rw-r--r--obj/Release/TempPE/Properties.Resources.Designer.cs.dllbin0 -> 3584 bytes
58 files changed, 1083 insertions, 0 deletions
diff --git a/.vs/Chess/v16/.suo b/.vs/Chess/v16/.suo
new file mode 100644
index 0000000..63c9c46
--- /dev/null
+++ b/.vs/Chess/v16/.suo
Binary files differ
diff --git a/App.config b/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/App.config
@@ -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> \ No newline at end of file
diff --git a/BoardTile.cs b/BoardTile.cs
new file mode 100644
index 0000000..1bccbec
--- /dev/null
+++ b/BoardTile.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Chess
+{
+ public enum BoardTileColor
+ {
+ White,
+ Black,
+ }
+
+ public class BoardTile
+ {
+ public int X;
+ public int Y;
+ public BoardTileColor Color;
+ public ChessPiece OccupyingPiece;
+ https://git.fhict.nl/I436104/chess
+ public BoardTile(int x, int y, BoardTileColor color)
+ {
+ X = x;
+ Y = y;
+ Color = color;
+ OccupyingPiece = null;
+ }
+
+ internal void Draw(Graphics graphics, float tileWidth, float tileHeight)
+ {
+ graphics.FillRectangle(new SolidBrush(this.Color == BoardTileColor.White ? System.Drawing.Color.White : System.Drawing.Color.Black), new RectangleF(X * tileWidth, Y * tileHeight, tileWidth, tileHeight));
+
+ OccupyingPiece?.Draw(graphics, X, Y, tileWidth, tileHeight);
+ }
+ }
+}
diff --git a/Chess.csproj b/Chess.csproj
new file mode 100644
index 0000000..1dc8e7e
--- /dev/null
+++ b/Chess.csproj
@@ -0,0 +1,124 @@
+<?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>{CBF01088-874A-442B-867D-2456BED50DC0}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <RootNamespace>Chess</RootNamespace>
+ <AssemblyName>Chess</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.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="BoardTile.cs" />
+ <Compile Include="ChessBoard.cs" />
+ <Compile Include="ChessPiece.cs" />
+ <Compile Include="MainForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="MainForm.Designer.cs">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Pieces\Pawn.cs" />
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="MainForm.resx">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ <DesignTime>True</DesignTime>
+ </Compile>
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\b_bishop_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\b_king_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\b_knight_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\b_pawn_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\b_queen_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\b_rook_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\w_bishop_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\w_king_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\w_knight_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\w_pawn_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\w_queen_png_shadow_256px.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Resources\w_rook_png_shadow_256px.png" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project> \ No newline at end of file
diff --git a/Chess.sln b/Chess.sln
new file mode 100644
index 0000000..9f798b8
--- /dev/null
+++ b/Chess.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30406.217
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Chess", "Chess.csproj", "{CBF01088-874A-442B-867D-2456BED50DC0}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {CBF01088-874A-442B-867D-2456BED50DC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CBF01088-874A-442B-867D-2456BED50DC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {CBF01088-874A-442B-867D-2456BED50DC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CBF01088-874A-442B-867D-2456BED50DC0}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {879B9B2D-8E15-4746-92A9-45F6CDD2463A}
+ EndGlobalSection
+EndGlobal
diff --git a/ChessBoard.cs b/ChessBoard.cs
new file mode 100644
index 0000000..81939bc
--- /dev/null
+++ b/ChessBoard.cs
@@ -0,0 +1,96 @@
+using Chess.Pieces;
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Chess
+{
+ public class ChessBoard
+ {
+ const int boardSize = 8;
+
+ private float tileWidth;
+ private float tileHeight;
+
+ private BoardTile[,] tiles;
+ private PictureBox container;
+
+ public ChessBoard(PictureBox container)
+ {
+ this.container = container;
+
+ GenerateBoard();
+ GeneratePieces();
+
+ DrawGame();
+ }
+
+ public void HandleResize()
+ {
+ DrawGame();
+ }
+
+ public void GeneratePieces()
+ {
+ for (int x = 0; x < boardSize; x++)
+ tiles[1, x].OccupyingPiece = new Pawn();
+
+ for (int x = 0; x < boardSize; x++)
+ tiles[6, x].OccupyingPiece = new Pawn();
+ }
+
+ public void GenerateBoard()
+ {
+ tiles = new BoardTile[boardSize, boardSize];
+
+ for (int y = 0; y < boardSize; y++)
+ {
+ for (int x = 0; x < boardSize; x++)
+ {
+ BoardTileColor color = BoardTileColor.White;
+
+ if (y % 2 == 0)
+ {
+ if (x % 2 != 0) color = BoardTileColor.Black;
+ }
+ else
+ {
+ if (x % 2 == 0) color = BoardTileColor.Black;
+ }
+
+ tiles[y, x] = new BoardTile(x, y, color);
+ }
+ }
+ }
+
+ public void DrawGame()
+ {
+ Bitmap temp = new Bitmap(container.Size.Width, container.Size.Height);
+
+ tileWidth = container.Size.Width / (float)boardSize;
+ tileHeight = container.Size.Height / (float)boardSize;
+
+ using (Graphics g = Graphics.FromImage(temp))
+ {
+ for (int y = 0; y < boardSize; y++)
+ {
+ for (int x = 0; x < boardSize; x++)
+ {
+ BoardTile tile = tiles[y, x];
+
+ tile.Draw(g, tileWidth, tileHeight);
+ }
+ }
+ }
+
+ if (container.Image != null)
+ container.Image.Dispose();
+
+ container.Image = temp;
+ }
+ }
+}
diff --git a/ChessPiece.cs b/ChessPiece.cs
new file mode 100644
index 0000000..68bc1cf
--- /dev/null
+++ b/ChessPiece.cs
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Drawing.Imaging;
+
+namespace Chess
+{
+ public abstract class ChessPiece
+ {
+ internal Bitmap PieceImage;
+ internal bool IsWhite;
+
+ public ChessPiece(bool isWhite)
+ {
+ IsWhite = isWhite;
+ }
+
+ public abstract bool MoveTo();
+ public abstract void Draw(Graphics graphics, float x, float y, float tileWidth, float tileHeight);
+
+ public Bitmap ResizeImage(Image image, int width, int height)
+ {
+ var destRect = new Rectangle(0, 0, width, height);
+ var destImage = new Bitmap(width, height);
+
+ destImage.SetResolution(image.HorizontalResolution, image.VerticalResolution);
+
+ using (var graphics = Graphics.FromImage(destImage))
+ {
+ graphics.CompositingMode = CompositingMode.SourceCopy;
+ graphics.CompositingQuality = CompositingQuality.HighQuality;
+ graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
+ graphics.SmoothingMode = SmoothingMode.HighQuality;
+ graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
+
+ using (var wrapMode = new ImageAttributes())
+ {
+ wrapMode.SetWrapMode(WrapMode.TileFlipXY);
+ graphics.DrawImage(image, destRect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, wrapMode);
+ }
+ }
+
+ return destImage;
+ }
+ }
+}
diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs
new file mode 100644
index 0000000..ec582bc
--- /dev/null
+++ b/MainForm.Designer.cs
@@ -0,0 +1,64 @@
+namespace Chess
+{
+ partial class MainForm
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.chessBoardBitmap = new System.Windows.Forms.PictureBox();
+ ((System.ComponentModel.ISupportInitialize)(this.chessBoardBitmap)).BeginInit();
+ this.SuspendLayout();
+ //
+ // chessBoardBitmap
+ //
+ this.chessBoardBitmap.Location = new System.Drawing.Point(254, 61);
+ this.chessBoardBitmap.Name = "chessBoardBitmap";
+ this.chessBoardBitmap.Size = new System.Drawing.Size(173, 146);
+ this.chessBoardBitmap.TabIndex = 0;
+ this.chessBoardBitmap.TabStop = false;
+ //
+ // MainForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(784, 761);
+ this.Controls.Add(this.chessBoardBitmap);
+ this.MinimumSize = new System.Drawing.Size(200, 200);
+ this.Name = "MainForm";
+ this.Text = "Chess Xtreme";
+ this.Load += new System.EventHandler(this.MainForm_Load);
+ this.Resize += new System.EventHandler(this.MainForm_Resize);
+ ((System.ComponentModel.ISupportInitialize)(this.chessBoardBitmap)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.PictureBox chessBoardBitmap;
+ }
+}
+
diff --git a/MainForm.cs b/MainForm.cs
new file mode 100644
index 0000000..08e2803
--- /dev/null
+++ b/MainForm.cs
@@ -0,0 +1,40 @@
+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 Chess
+{
+ public partial class MainForm : Form
+ {
+ private ChessBoard board;
+
+ public MainForm()
+ {
+ InitializeComponent();
+ }
+
+ private void FitBoardContainerToScreen()
+ {
+ this.chessBoardBitmap.Location = new Point(0, 0);
+ this.chessBoardBitmap.Size = new Size(this.ClientSize.Width, this.ClientSize.Height);
+ }
+
+ private void MainForm_Load(object sender, EventArgs e)
+ {
+ FitBoardContainerToScreen();
+ this.board = new ChessBoard(this.chessBoardBitmap);
+ }
+
+ private void MainForm_Resize(object sender, EventArgs e)
+ {
+ FitBoardContainerToScreen();
+ this.board.HandleResize();
+ }
+ }
+}
diff --git a/MainForm.resx b/MainForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/MainForm.resx
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root> \ No newline at end of file
diff --git a/Pieces/Pawn.cs b/Pieces/Pawn.cs
new file mode 100644
index 0000000..d518b8e
--- /dev/null
+++ b/Pieces/Pawn.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Chess.Pieces
+{
+ class Pawn : ChessPiece
+ {
+ public Pawn()
+ {
+ PieceImage = new Bitmap(Chess.Properties.Resources.b_pawn_png_shadow_256px);
+ }
+
+ public override void Draw(Graphics graphics, float x, float y, float tileWidth, float tileHeight)
+ {
+ if (PieceImage != null)
+ {
+ var image = this.ResizeImage(PieceImage, (int)tileWidth, (int)tileHeight);
+
+ graphics.DrawImage(image, new PointF(x*tileWidth, y*tileHeight));
+
+ image.Dispose();
+ }
+ }
+
+ public override bool MoveTo()
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Program.cs b/Program.cs
new file mode 100644
index 0000000..06b734c
--- /dev/null
+++ b/Program.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Chess
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new MainForm());
+ }
+ }
+}
diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..642e315
--- /dev/null
+++ b/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("Chess")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Chess")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[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("cbf01088-874a-442b-867d-2456bed50dc0")]
+
+// 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/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..65342f3
--- /dev/null
+++ b/Properties/Resources.Designer.cs
@@ -0,0 +1,183 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// 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.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Chess.Properties {
+ using System;
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // 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", "16.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() {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Chess.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap b_bishop_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("b_bishop_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap b_king_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("b_king_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap b_knight_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("b_knight_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap b_pawn_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("b_pawn_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap b_queen_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("b_queen_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap b_rook_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("b_rook_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap w_bishop_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("w_bishop_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap w_king_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("w_king_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap w_knight_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("w_knight_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap w_pawn_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("w_pawn_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap w_queen_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("w_queen_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap w_rook_png_shadow_256px {
+ get {
+ object obj = ResourceManager.GetObject("w_rook_png_shadow_256px", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/Properties/Resources.resx b/Properties/Resources.resx
new file mode 100644
index 0000000..6281906
--- /dev/null
+++ b/Properties/Resources.resx
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+ <data name="b_bishop_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\b_bishop_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="b_king_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\b_king_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="b_knight_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\b_knight_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="b_pawn_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\b_pawn_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="b_queen_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\b_queen_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="b_rook_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\b_rook_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="w_bishop_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\w_bishop_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="w_king_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\w_king_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="w_knight_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\w_knight_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="w_pawn_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\w_pawn_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="w_queen_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\w_queen_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="w_rook_png_shadow_256px" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\w_rook_png_shadow_256px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+</root> \ No newline at end of file
diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..2655a4f
--- /dev/null
+++ b/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// 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.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Chess.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/Properties/Settings.settings b/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/Properties/Settings.settings
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
diff --git a/Resources/b_bishop_png_shadow_256px.png b/Resources/b_bishop_png_shadow_256px.png
new file mode 100644
index 0000000..4e06f75
--- /dev/null
+++ b/Resources/b_bishop_png_shadow_256px.png
Binary files differ
diff --git a/Resources/b_king_png_shadow_256px.png b/Resources/b_king_png_shadow_256px.png
new file mode 100644
index 0000000..7e3a2d0
--- /dev/null
+++ b/Resources/b_king_png_shadow_256px.png
Binary files differ
diff --git a/Resources/b_knight_png_shadow_256px.png b/Resources/b_knight_png_shadow_256px.png
new file mode 100644
index 0000000..1a79790
--- /dev/null
+++ b/Resources/b_knight_png_shadow_256px.png
Binary files differ
diff --git a/Resources/b_pawn_png_shadow_256px.png b/Resources/b_pawn_png_shadow_256px.png
new file mode 100644
index 0000000..4093567
--- /dev/null
+++ b/Resources/b_pawn_png_shadow_256px.png
Binary files differ
diff --git a/Resources/b_queen_png_shadow_256px.png b/Resources/b_queen_png_shadow_256px.png
new file mode 100644
index 0000000..be144e6
--- /dev/null
+++ b/Resources/b_queen_png_shadow_256px.png
Binary files differ
diff --git a/Resources/b_rook_png_shadow_256px.png b/Resources/b_rook_png_shadow_256px.png
new file mode 100644
index 0000000..007f742
--- /dev/null
+++ b/Resources/b_rook_png_shadow_256px.png
Binary files differ
diff --git a/Resources/w_bishop_png_shadow_256px.png b/Resources/w_bishop_png_shadow_256px.png
new file mode 100644
index 0000000..b5cd1c3
--- /dev/null
+++ b/Resources/w_bishop_png_shadow_256px.png
Binary files differ
diff --git a/Resources/w_king_png_shadow_256px.png b/Resources/w_king_png_shadow_256px.png
new file mode 100644
index 0000000..c2d66a0
--- /dev/null
+++ b/Resources/w_king_png_shadow_256px.png
Binary files differ
diff --git a/Resources/w_knight_png_shadow_256px.png b/Resources/w_knight_png_shadow_256px.png
new file mode 100644
index 0000000..7f56449
--- /dev/null
+++ b/Resources/w_knight_png_shadow_256px.png
Binary files differ
diff --git a/Resources/w_pawn_png_shadow_256px.png b/Resources/w_pawn_png_shadow_256px.png
new file mode 100644
index 0000000..0c5eaa3
--- /dev/null
+++ b/Resources/w_pawn_png_shadow_256px.png
Binary files differ
diff --git a/Resources/w_queen_png_shadow_256px.png b/Resources/w_queen_png_shadow_256px.png
new file mode 100644
index 0000000..31687ec
--- /dev/null
+++ b/Resources/w_queen_png_shadow_256px.png
Binary files differ
diff --git a/Resources/w_rook_png_shadow_256px.png b/Resources/w_rook_png_shadow_256px.png
new file mode 100644
index 0000000..53213ac
--- /dev/null
+++ b/Resources/w_rook_png_shadow_256px.png
Binary files differ
diff --git a/bin/Debug/Chess.exe b/bin/Debug/Chess.exe
new file mode 100644
index 0000000..d4cf93c
--- /dev/null
+++ b/bin/Debug/Chess.exe
Binary files differ
diff --git a/bin/Debug/Chess.exe.config b/bin/Debug/Chess.exe.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/bin/Debug/Chess.exe.config
@@ -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> \ No newline at end of file
diff --git a/bin/Debug/Chess.pdb b/bin/Debug/Chess.pdb
new file mode 100644
index 0000000..5a0e80f
--- /dev/null
+++ b/bin/Debug/Chess.pdb
Binary files differ
diff --git a/bin/Release/Chess.exe b/bin/Release/Chess.exe
new file mode 100644
index 0000000..bb54dc3
--- /dev/null
+++ b/bin/Release/Chess.exe
Binary files differ
diff --git a/bin/Release/Chess.exe.config b/bin/Release/Chess.exe.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/bin/Release/Chess.exe.config
@@ -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> \ No newline at end of file
diff --git a/bin/Release/Chess.pdb b/bin/Release/Chess.pdb
new file mode 100644
index 0000000..e3b4478
--- /dev/null
+++ b/bin/Release/Chess.pdb
Binary files differ
diff --git a/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
new file mode 100644
index 0000000..3871b18
--- /dev/null
+++ b/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
@@ -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")]
diff --git a/obj/Debug/Chess.MainForm.resources b/obj/Debug/Chess.MainForm.resources
new file mode 100644
index 0000000..6c05a97
--- /dev/null
+++ b/obj/Debug/Chess.MainForm.resources
Binary files differ
diff --git a/obj/Debug/Chess.Properties.Resources.resources b/obj/Debug/Chess.Properties.Resources.resources
new file mode 100644
index 0000000..928dda4
--- /dev/null
+++ b/obj/Debug/Chess.Properties.Resources.resources
Binary files differ
diff --git a/obj/Debug/Chess.csproj.CoreCompileInputs.cache b/obj/Debug/Chess.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..0afc8e6
--- /dev/null
+++ b/obj/Debug/Chess.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+c665b544783ebbad06de451d9c9d8d9603c7e71b
diff --git a/obj/Debug/Chess.csproj.FileListAbsolute-LAPTOP-B78JCJFS.txt b/obj/Debug/Chess.csproj.FileListAbsolute-LAPTOP-B78JCJFS.txt
new file mode 100644
index 0000000..9cb6ff2
--- /dev/null
+++ b/obj/Debug/Chess.csproj.FileListAbsolute-LAPTOP-B78JCJFS.txt
@@ -0,0 +1,9 @@
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\bin\Debug\Chess.exe.config
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\bin\Debug\Chess.exe
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\bin\Debug\Chess.pdb
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.MainForm.resources
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.Properties.Resources.resources
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.csproj.GenerateResource.cache
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.csproj.CoreCompileInputs.cache
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.exe
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.pdb
diff --git a/obj/Debug/Chess.csproj.FileListAbsolute.txt b/obj/Debug/Chess.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..9f178e4
--- /dev/null
+++ b/obj/Debug/Chess.csproj.FileListAbsolute.txt
@@ -0,0 +1,10 @@
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\bin\Debug\Chess.exe.config
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\bin\Debug\Chess.exe
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\bin\Debug\Chess.pdb
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.MainForm.resources
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.Properties.Resources.resources
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.csproj.GenerateResource.cache
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.csproj.CoreCompileInputs.cache
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.exe
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.pdb
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Debug\Chess.csprojAssemblyReference.cache
diff --git a/obj/Debug/Chess.csproj.GenerateResource.cache b/obj/Debug/Chess.csproj.GenerateResource.cache
new file mode 100644
index 0000000..15b52cf
--- /dev/null
+++ b/obj/Debug/Chess.csproj.GenerateResource.cache
Binary files differ
diff --git a/obj/Debug/Chess.csprojAssemblyReference.cache b/obj/Debug/Chess.csprojAssemblyReference.cache
new file mode 100644
index 0000000..f81aff4
--- /dev/null
+++ b/obj/Debug/Chess.csprojAssemblyReference.cache
Binary files differ
diff --git a/obj/Debug/Chess.exe b/obj/Debug/Chess.exe
new file mode 100644
index 0000000..d4cf93c
--- /dev/null
+++ b/obj/Debug/Chess.exe
Binary files differ
diff --git a/obj/Debug/Chess.pdb b/obj/Debug/Chess.pdb
new file mode 100644
index 0000000..5a0e80f
--- /dev/null
+++ b/obj/Debug/Chess.pdb
Binary files differ
diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache
new file mode 100644
index 0000000..e6fcb3b
--- /dev/null
+++ b/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Binary files differ
diff --git a/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
new file mode 100644
index 0000000..29860f8
--- /dev/null
+++ b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary files differ
diff --git a/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
new file mode 100644
index 0000000..87e591a
--- /dev/null
+++ b/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
Binary files differ
diff --git a/obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
new file mode 100644
index 0000000..3871b18
--- /dev/null
+++ b/obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
@@ -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")]
diff --git a/obj/Release/Chess.MainForm.resources b/obj/Release/Chess.MainForm.resources
new file mode 100644
index 0000000..6c05a97
--- /dev/null
+++ b/obj/Release/Chess.MainForm.resources
Binary files differ
diff --git a/obj/Release/Chess.Properties.Resources.resources b/obj/Release/Chess.Properties.Resources.resources
new file mode 100644
index 0000000..6c05a97
--- /dev/null
+++ b/obj/Release/Chess.Properties.Resources.resources
Binary files differ
diff --git a/obj/Release/Chess.csproj.CoreCompileInputs.cache b/obj/Release/Chess.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..ebf2dd0
--- /dev/null
+++ b/obj/Release/Chess.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+c5c1da89ec11211f5ccde59de778c88b1d2136fd
diff --git a/obj/Release/Chess.csproj.FileListAbsolute.txt b/obj/Release/Chess.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..25a0623
--- /dev/null
+++ b/obj/Release/Chess.csproj.FileListAbsolute.txt
@@ -0,0 +1,10 @@
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\bin\Release\Chess.exe.config
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\bin\Release\Chess.exe
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\bin\Release\Chess.pdb
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Release\Chess.csprojAssemblyReference.cache
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Release\Chess.MainForm.resources
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Release\Chess.Properties.Resources.resources
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Release\Chess.csproj.GenerateResource.cache
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Release\Chess.csproj.CoreCompileInputs.cache
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Release\Chess.exe
+C:\Users\Aldrik R\OneDrive - Office 365 Fontys\Homework\P-DB-SOFT-P-DB04\Deelproducten\Deelproduct wedstrijd\Chess\obj\Release\Chess.pdb
diff --git a/obj/Release/Chess.csproj.GenerateResource.cache b/obj/Release/Chess.csproj.GenerateResource.cache
new file mode 100644
index 0000000..e76fea7
--- /dev/null
+++ b/obj/Release/Chess.csproj.GenerateResource.cache
Binary files differ
diff --git a/obj/Release/Chess.csprojAssemblyReference.cache b/obj/Release/Chess.csprojAssemblyReference.cache
new file mode 100644
index 0000000..4c4ceaf
--- /dev/null
+++ b/obj/Release/Chess.csprojAssemblyReference.cache
Binary files differ
diff --git a/obj/Release/Chess.exe b/obj/Release/Chess.exe
new file mode 100644
index 0000000..bb54dc3
--- /dev/null
+++ b/obj/Release/Chess.exe
Binary files differ
diff --git a/obj/Release/Chess.pdb b/obj/Release/Chess.pdb
new file mode 100644
index 0000000..e3b4478
--- /dev/null
+++ b/obj/Release/Chess.pdb
Binary files differ
diff --git a/obj/Release/TempPE/Properties.Resources.Designer.cs.dll b/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
new file mode 100644
index 0000000..5e47250
--- /dev/null
+++ b/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
Binary files differ