Commit fb09fe0a authored by Yiğit Yusuf Çılgı's avatar Yiğit Yusuf Çılgı
Browse files

Initial commit

parents
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\Form1.cs",
"PreviewInSolutionExplorer": false
}
\ No newline at end of file
File added
namespace game2048
{
partial class Game2048
{
/// <summary>
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// </summary>
/// <param name="disposing"></param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
/// <summary>
/// </summary>
private void InitializeComponent()
{
this.lbl1 = new System.Windows.Forms.Label();
this.lbl2 = new System.Windows.Forms.Label();
this.lbl4 = new System.Windows.Forms.Label();
this.lbl3 = new System.Windows.Forms.Label();
this.lbl5 = new System.Windows.Forms.Label();
this.lbl6 = new System.Windows.Forms.Label();
this.lbl8 = new System.Windows.Forms.Label();
this.lbl7 = new System.Windows.Forms.Label();
this.lbl9 = new System.Windows.Forms.Label();
this.lbl10 = new System.Windows.Forms.Label();
this.lbl12 = new System.Windows.Forms.Label();
this.lbl11 = new System.Windows.Forms.Label();
this.lbl13 = new System.Windows.Forms.Label();
this.lbl14 = new System.Windows.Forms.Label();
this.lbl16 = new System.Windows.Forms.Label();
this.lbl15 = new System.Windows.Forms.Label();
this.lblScore = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lblGameOver = new System.Windows.Forms.Label();
this.btnNewGame = new System.Windows.Forms.Button();
this.btnExit = new System.Windows.Forms.Button();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.menuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.newGameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ınformationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.gamePlayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.lblAbout = new System.Windows.Forms.Label();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
// lbl1
//
this.lbl1.BackColor = System.Drawing.Color.White;
this.lbl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl1.ForeColor = System.Drawing.Color.White;
this.lbl1.Location = new System.Drawing.Point(43, 107);
this.lbl1.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl1.Name = "lbl1";
this.lbl1.Size = new System.Drawing.Size(100, 100);
this.lbl1.TabIndex = 0;
this.lbl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl2
//
this.lbl2.BackColor = System.Drawing.Color.White;
this.lbl2.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl2.ForeColor = System.Drawing.Color.White;
this.lbl2.Location = new System.Drawing.Point(149, 107);
this.lbl2.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl2.Name = "lbl2";
this.lbl2.Size = new System.Drawing.Size(100, 100);
this.lbl2.TabIndex = 1;
this.lbl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl4
//
this.lbl4.BackColor = System.Drawing.Color.White;
this.lbl4.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl4.ForeColor = System.Drawing.Color.White;
this.lbl4.Location = new System.Drawing.Point(361, 107);
this.lbl4.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl4.Name = "lbl4";
this.lbl4.Size = new System.Drawing.Size(100, 100);
this.lbl4.TabIndex = 2;
this.lbl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl3
//
this.lbl3.BackColor = System.Drawing.Color.White;
this.lbl3.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl3.ForeColor = System.Drawing.Color.White;
this.lbl3.Location = new System.Drawing.Point(255, 107);
this.lbl3.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl3.Name = "lbl3";
this.lbl3.Size = new System.Drawing.Size(100, 100);
this.lbl3.TabIndex = 3;
this.lbl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl3.Click += new System.EventHandler(this.lbl3_Click);
//
// lbl5
//
this.lbl5.BackColor = System.Drawing.Color.White;
this.lbl5.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl5.ForeColor = System.Drawing.Color.White;
this.lbl5.Location = new System.Drawing.Point(43, 213);
this.lbl5.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl5.Name = "lbl5";
this.lbl5.Size = new System.Drawing.Size(100, 100);
this.lbl5.TabIndex = 0;
this.lbl5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl6
//
this.lbl6.BackColor = System.Drawing.Color.White;
this.lbl6.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl6.ForeColor = System.Drawing.Color.White;
this.lbl6.Location = new System.Drawing.Point(149, 213);
this.lbl6.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl6.Name = "lbl6";
this.lbl6.Size = new System.Drawing.Size(100, 100);
this.lbl6.TabIndex = 1;
this.lbl6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl8
//
this.lbl8.BackColor = System.Drawing.Color.White;
this.lbl8.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl8.ForeColor = System.Drawing.Color.White;
this.lbl8.Location = new System.Drawing.Point(361, 212);
this.lbl8.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl8.Name = "lbl8";
this.lbl8.Size = new System.Drawing.Size(100, 100);
this.lbl8.TabIndex = 2;
this.lbl8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl7
//
this.lbl7.BackColor = System.Drawing.Color.White;
this.lbl7.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl7.ForeColor = System.Drawing.Color.White;
this.lbl7.Location = new System.Drawing.Point(255, 213);
this.lbl7.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl7.Name = "lbl7";
this.lbl7.Size = new System.Drawing.Size(100, 100);
this.lbl7.TabIndex = 3;
this.lbl7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl9
//
this.lbl9.BackColor = System.Drawing.Color.White;
this.lbl9.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl9.ForeColor = System.Drawing.Color.White;
this.lbl9.Location = new System.Drawing.Point(43, 317);
this.lbl9.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl9.Name = "lbl9";
this.lbl9.Size = new System.Drawing.Size(100, 100);
this.lbl9.TabIndex = 0;
this.lbl9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl10
//
this.lbl10.BackColor = System.Drawing.Color.White;
this.lbl10.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl10.ForeColor = System.Drawing.Color.White;
this.lbl10.Location = new System.Drawing.Point(149, 318);
this.lbl10.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl10.Name = "lbl10";
this.lbl10.Size = new System.Drawing.Size(100, 100);
this.lbl10.TabIndex = 1;
this.lbl10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl12
//
this.lbl12.BackColor = System.Drawing.Color.White;
this.lbl12.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl12.ForeColor = System.Drawing.Color.White;
this.lbl12.Location = new System.Drawing.Point(361, 318);
this.lbl12.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl12.Name = "lbl12";
this.lbl12.Size = new System.Drawing.Size(100, 100);
this.lbl12.TabIndex = 2;
this.lbl12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl11
//
this.lbl11.BackColor = System.Drawing.Color.White;
this.lbl11.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl11.ForeColor = System.Drawing.Color.White;
this.lbl11.Location = new System.Drawing.Point(255, 318);
this.lbl11.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl11.Name = "lbl11";
this.lbl11.Size = new System.Drawing.Size(100, 100);
this.lbl11.TabIndex = 3;
this.lbl11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl13
//
this.lbl13.BackColor = System.Drawing.Color.White;
this.lbl13.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl13.ForeColor = System.Drawing.Color.White;
this.lbl13.Location = new System.Drawing.Point(43, 422);
this.lbl13.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl13.Name = "lbl13";
this.lbl13.Size = new System.Drawing.Size(100, 100);
this.lbl13.TabIndex = 0;
this.lbl13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl14
//
this.lbl14.BackColor = System.Drawing.Color.White;
this.lbl14.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl14.ForeColor = System.Drawing.Color.White;
this.lbl14.Location = new System.Drawing.Point(149, 422);
this.lbl14.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl14.Name = "lbl14";
this.lbl14.Size = new System.Drawing.Size(100, 100);
this.lbl14.TabIndex = 1;
this.lbl14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl16
//
this.lbl16.BackColor = System.Drawing.Color.White;
this.lbl16.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl16.ForeColor = System.Drawing.Color.White;
this.lbl16.Location = new System.Drawing.Point(361, 422);
this.lbl16.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl16.Name = "lbl16";
this.lbl16.Size = new System.Drawing.Size(100, 100);
this.lbl16.TabIndex = 2;
this.lbl16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl15
//
this.lbl15.BackColor = System.Drawing.Color.White;
this.lbl15.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.lbl15.ForeColor = System.Drawing.Color.White;
this.lbl15.Location = new System.Drawing.Point(255, 422);
this.lbl15.Margin = new System.Windows.Forms.Padding(5, 5, 0, 0);
this.lbl15.Name = "lbl15";
this.lbl15.Size = new System.Drawing.Size(100, 100);
this.lbl15.TabIndex = 3;
this.lbl15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lblScore
//
this.lblScore.Anchor = System.Windows.Forms.AnchorStyles.None;
this.lblScore.BackColor = System.Drawing.Color.White;
this.lblScore.Font = new System.Drawing.Font("Microsoft Sans Serif", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblScore.ForeColor = System.Drawing.Color.DarkRed;
this.lblScore.Location = new System.Drawing.Point(375, 38);
this.lblScore.Name = "lblScore";
this.lblScore.Size = new System.Drawing.Size(132, 41);
this.lblScore.TabIndex = 4;
this.lblScore.Text = "0";
this.lblScore.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lblScore.Click += new System.EventHandler(this.lblScore_Click);
//
// label2
//
this.label2.BackColor = System.Drawing.Color.Black;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(238, 38);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(131, 41);
this.label2.TabIndex = 5;
this.label2.Text = "SCORE:";
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// lblGameOver
//
this.lblGameOver.BackColor = System.Drawing.Color.WhiteSmoke;
this.lblGameOver.Font = new System.Drawing.Font("Times New Roman", 40F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblGameOver.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.lblGameOver.Location = new System.Drawing.Point(41, 153);
this.lblGameOver.Name = "lblGameOver";
this.lblGameOver.Size = new System.Drawing.Size(420, 94);
this.lblGameOver.TabIndex = 6;
this.lblGameOver.Text = "Game Over";
this.lblGameOver.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lblGameOver.Visible = false;
this.lblGameOver.Click += new System.EventHandler(this.lblGameOver_Click);
//
// btnNewGame
//
this.btnNewGame.BackColor = System.Drawing.Color.DarkRed;
this.btnNewGame.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnNewGame.ForeColor = System.Drawing.Color.White;
this.btnNewGame.Location = new System.Drawing.Point(156, 381);
this.btnNewGame.Name = "btnNewGame";
this.btnNewGame.Size = new System.Drawing.Size(240, 58);
this.btnNewGame.TabIndex = 7;
this.btnNewGame.Text = "NEW GAME";
this.btnNewGame.UseVisualStyleBackColor = false;
this.btnNewGame.Visible = false;
this.btnNewGame.Click += new System.EventHandler(this.btnNewGame_Click);
this.btnNewGame.MouseLeave += new System.EventHandler(this.btnNewGame_MouseLeave);
this.btnNewGame.MouseHover += new System.EventHandler(this.btnNewGame_MouseHover);
//
// btnExit
//
this.btnExit.BackColor = System.Drawing.Color.DarkOliveGreen;
this.btnExit.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnExit.ForeColor = System.Drawing.Color.White;
this.btnExit.Location = new System.Drawing.Point(156, 297);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(240, 58);
this.btnExit.TabIndex = 8;
this.btnExit.Text = "EXİT";
this.btnExit.UseVisualStyleBackColor = false;
this.btnExit.Visible = false;
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
this.btnExit.MouseLeave += new System.EventHandler(this.btnExit_MouseLeave);
this.btnExit.MouseHover += new System.EventHandler(this.btnExit_MouseHover);
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(521, 24);
this.menuStrip1.TabIndex = 9;
this.menuStrip1.Text = "menuStrip1";
this.menuStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.menuStrip1_ItemClicked);
//
// menuToolStripMenuItem
//
this.menuToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.newGameToolStripMenuItem,
this.ınformationToolStripMenuItem,
this.gamePlayToolStripMenuItem,
this.exitToolStripMenuItem});
this.menuToolStripMenuItem.Name = "menuToolStripMenuItem";
this.menuToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
this.menuToolStripMenuItem.Text = "Options";
this.menuToolStripMenuItem.Click += new System.EventHandler(this.menuToolStripMenuItem_Click);
//
// newGameToolStripMenuItem
//
this.newGameToolStripMenuItem.Name = "newGameToolStripMenuItem";
this.newGameToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
this.newGameToolStripMenuItem.Text = "New Game";
this.newGameToolStripMenuItem.Click += new System.EventHandler(this.newGameToolStripMenuItem_Click);
//
// ınformationToolStripMenuItem
//
this.ınformationToolStripMenuItem.Name = "ınformationToolStripMenuItem";
this.ınformationToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
this.ınformationToolStripMenuItem.Text = "Information";
this.ınformationToolStripMenuItem.Click += new System.EventHandler(this.ınformationToolStripMenuItem_Click);
//
// gamePlayToolStripMenuItem
//
this.gamePlayToolStripMenuItem.Name = "gamePlayToolStripMenuItem";
this.gamePlayToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
this.gamePlayToolStripMenuItem.Text = "How to Play";
this.gamePlayToolStripMenuItem.Click += new System.EventHandler(this.gamePlayToolStripMenuItem_Click);
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
this.exitToolStripMenuItem.Text = "Exit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
//
// lblAbout
//
this.lblAbout.Dock = System.Windows.Forms.DockStyle.Right;
this.lblAbout.Location = new System.Drawing.Point(511, 24);
this.lblAbout.Name = "lblAbout";
this.lblAbout.Size = new System.Drawing.Size(10, 550);
this.lblAbout.TabIndex = 10;
//
// Game2048
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.BackColor = System.Drawing.Color.Plum;
this.ClientSize = new System.Drawing.Size(521, 574);
this.Controls.Add(this.lblAbout);
this.Controls.Add(this.btnExit);
this.Controls.Add(this.btnNewGame);
this.Controls.Add(this.lblGameOver);
this.Controls.Add(this.label2);
this.Controls.Add(this.lblScore);
this.Controls.Add(this.lbl15);
this.Controls.Add(this.lbl11);
this.Controls.Add(this.lbl7);
this.Controls.Add(this.lbl16);
this.Controls.Add(this.lbl3);
this.Controls.Add(this.lbl12);
this.Controls.Add(this.lbl8);
this.Controls.Add(this.lbl14);
this.Controls.Add(this.lbl4);
this.Controls.Add(this.lbl13);
this.Controls.Add(this.lbl10);
this.Controls.Add(this.lbl9);
this.Controls.Add(this.lbl6);
this.Controls.Add(this.lbl5);
this.Controls.Add(this.lbl2);
this.Controls.Add(this.lbl1);
this.Controls.Add(this.menuStrip1);
this.ForeColor = System.Drawing.SystemColors.WindowText;
this.MainMenuStrip = this.menuStrip1;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Game2048";
this.Load += new System.EventHandler(this.Form1_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.Label lbl1;
private System.Windows.Forms.Label lbl2;
private System.Windows.Forms.Label lbl4;
private System.Windows.Forms.Label lbl3;
private System.Windows.Forms.Label lbl5;
private System.Windows.Forms.Label lbl6;
private System.Windows.Forms.Label lbl8;
private System.Windows.Forms.Label lbl7;
private System.Windows.Forms.Label lbl9;
private System.Windows.Forms.Label lbl10;
private System.Windows.Forms.Label lbl12;
private System.Windows.Forms.Label lbl11;
private System.Windows.Forms.Label lbl13;
private System.Windows.Forms.Label lbl14;
private System.Windows.Forms.Label lbl16;
private System.Windows.Forms.Label lbl15;
private System.Windows.Forms.Label lblScore;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lblGameOver;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem menuToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem newGameToolStripMenuItem;
private System.Windows.Forms.Label lblAbout;
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
private System.Windows.Forms.Button btnNewGame;
private System.Windows.Forms.ToolStripMenuItem ınformationToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem gamePlayToolStripMenuItem;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using System.Threading;
using System.Media;
namespace game2048
{
public partial class Game2048 : Form
{
SoundPlayer sound = new SoundPlayer(Application.StartupPath+"/andiem.wav");//KAZANMA SESİ
SoundPlayer sound2 = new SoundPlayer(Application.StartupPath+"/blip.wav");//KAYBETME SESİ
Random Rd = new Random();
bool tekrarOyun = true;
static ArrayList dizi1 = new ArrayList();//DİZİ1
public Game2048()
{
//asagı ve yukarı haraket ve sag ve sol haraket birbirinin tersi işlem yapar yani biri diziyi arttırırken diğeri azaltır.
//ortak noktaları textlerin içinde ki sayıları toplamak ve var olan score eklemek.
//
InitializeComponent();
}
public void renkislemi()
{// bu fonksiyonda sayıların ve boştextin rengini belirliyorum
Label[,] Game = {
{lbl1,lbl2,lbl3,lbl4},
{lbl5,lbl6,lbl7,lbl8},
{lbl9,lbl10,lbl11,lbl12},
{lbl13,lbl14,lbl15,lbl16}
};
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
if(Game[i,j].Text==""){
Game[i, j].BackColor = System.Drawing.Color.DarkMagenta;
}
if (Game[i, j].Text == "2")
{
Game[i, j].BackColor = System.Drawing.Color.LightGray;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "4")
{
Game[i, j].BackColor = System.Drawing.Color.Gray;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "8")
{
Game[i, j].BackColor = System.Drawing.Color.Orange;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "16")
{
Game[i, j].BackColor = System.Drawing.Color.OrangeRed;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "32")
{
Game[i, j].BackColor = System.Drawing.Color.DarkOrange;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "64")
{
Game[i, j].BackColor = System.Drawing.Color.LightPink;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "128")
{
Game[i, j].BackColor = System.Drawing.Color.Red;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "256")
{
Game[i, j].BackColor = Color.DarkRed;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "512")
{
Game[i, j].BackColor = System.Drawing.Color.LightBlue;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "1024")
{
Game[i, j].BackColor = System.Drawing.Color.Blue;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
if (Game[i, j].Text == "2048")
{
Game[i, j].BackColor = System.Drawing.Color.Green;
Game[i, j].ForeColor = System.Drawing.Color.White;
}
}
}
} //RENK İŞLEMLERİ
public void sayiUret() {
dizi1.Clear();
Label[,] Game = { //labelleri diziye atıyoruz
{lbl1,lbl2,lbl3,lbl4},
{lbl5,lbl6,lbl7,lbl8},
{lbl9,lbl10,lbl11,lbl12},
{lbl13,lbl14,lbl15,lbl16}
};
for (int i = 0; i < 4;i++ )
{
for (int j = 0; j < 4;j++)
{
if(Game[i,j].Text==""){
dizi1.Add(i*4+j+1);//16 tane oldugu için iç içe 2 for ve bunları diziye ekliyoruz
}
}
}
if(dizi1.Count>0){
int sayidoldur = int.Parse(dizi1[Rd.Next(0,dizi1.Count-1)].ToString());
int i0 = (sayidoldur - 1) / 4;
int j0 = (sayidoldur - 1) - i0 *4;
int dizi2 = Rd.Next(1,10);//DİZİ 2 //random olarak atayabilmek için
if (dizi2 == 1 || dizi2 == 2 || dizi2 == 3 || dizi2 == 4 || dizi2 == 5||dizi2==6 )
{
Game[i0, j0].Text = "2";
}//2 veya 4 üretme koşulumuz. 1 2 3 4 5 labellara 2 gelir. diğerlerine 4 sayısı gelir.
else {
Game[i0,j0].Text="4";
}
}
renkislemi();
}
public void yukariHareket() {
bool yukarıKontrol = true;
bool kazan1 = false;
bool yeniSayi = false;
Label[,] Game = { //labelleri diziye atıyoruz
{lbl1,lbl2,lbl3,lbl4},
{lbl5,lbl6,lbl7,lbl8},
{lbl9,lbl10,lbl11,lbl12},
{lbl13,lbl14,lbl15,lbl16}
};
for (int i = 0; i < 4;i++ )
{
int toplam = 0;
for (int j = 0; j < 4;j++ )
{
for (int k = j+1; k < 4;k++ )
{
if(Game[k,i].Text!=""){
if(Game[k,i].Text==Game[j,i].Text){
kazan1 = true;
}
break;
}
}
if (Game[j, i].Text == "")
{
toplam++;//yukarı tarafda aynı sayı degerinden bir text dolu ise bunları topluyor
}
else {
for (int m = j; m >= 0;m-- )
{
if(Game[m,i].Text==""){
yeniSayi = true;
break;
}
}
if (j + 1 < 4)
{
bool extrasayi = true;
for (int k = j + 1; k < 4; k++)
{
if (Game[k, i].Text != "")
{
if (Game[j, i].Text == Game[k, i].Text)//toplanacak sayı varsa
{
yukarıKontrol = false;
lblScore.Text = (int.Parse(lblScore.Text) + int.Parse(Game[ j,i].Text) * 2).ToString();//score ekle
yeniSayi = true;
extrasayi = false;
Game[j, i].Text = (int.Parse(Game[j, i].Text) * 2).ToString();
if(toplam!=0){
Game[j - toplam, i].Text = Game[j, i].Text;
Game[j, i].Text = "";
}
Game[k, i].Text = "";
break;
}
break;
}
}
if(extrasayi==true && toplam!=0){
yukarıKontrol = false;
Game[j - toplam, i].Text = Game[j, i].Text;
Game[j, i].Text = "";
}
}
else {
if(toplam!=0){
yukarıKontrol = false;
Game[j - toplam, i].Text = Game[j, i].Text;
Game[j, i].Text = "";
}
}
}
}
}
if(yukarıKontrol==false && kazan1==true){
sound.Play();
}
if (yukarıKontrol == false && kazan1 == false)
{
sound2.Play();
}
if(yeniSayi==true){
sayiUret();
}
}//YUKARI İŞLEMİ
private void Form1_Load(object sender, EventArgs e)
{
sayiUret();
sayiUret();
sayiUret();//ilk açılışta kaç tane sayı vericeğimizi burada belirliyoruz
}// İLK AÇILIŞ
public void asagiHaraket()
{
bool asagiKontrol = true;
bool kazan1 = false;
bool yeniSayi = false;
Label[,] Game = {
{lbl1,lbl2,lbl3,lbl4},
{lbl5,lbl6,lbl7,lbl8},
{lbl9,lbl10,lbl11,lbl12},
{lbl13,lbl14,lbl15,lbl16}
};
for (int i = 0; i < 4; i++)
{
int toplam = 0;
for (int j = 3; j >=0; j--)
{
for (int k = j - 1; k >= 0;k-- )
{
if(Game[k,i].Text!=""){
if(Game[k,i].Text==Game[j,i].Text){
kazan1 = true;
}
break;
}
}
if (Game[j, i].Text == "")
{
toplam++;
}
else
{
for (int m = j+1; m <= 3; m++)
{
if (Game[m, i].Text == "")
{
yeniSayi = true;
break;
}
}
if (j-1>=0)
{
bool extrasayi = true;
for (int k = j -1 ; k >= 0; k--)
{
if (Game[k, i].Text != "")
{
if (Game[j, i].Text == Game[k, i].Text)
{
asagiKontrol = false;
lblScore.Text = (int.Parse(lblScore.Text) + int.Parse(Game[ j,i].Text) * 2).ToString();
yeniSayi = true;
extrasayi = false;
Game[j, i].Text = (int.Parse(Game[j, i].Text) * 2).ToString();
if (toplam != 0)
{
Game[j + toplam, i].Text = Game[j, i].Text;
Game[j, i].Text = "";
}
Game[k, i].Text = "";
break;
}
break;
}
}
if (extrasayi == true && toplam != 0)
{
asagiKontrol = false;
Game[j + toplam, i].Text = Game[j, i].Text;
Game[j, i].Text = "";
}
}
else
{
if (toplam != 0)
{
asagiKontrol = false;
Game[j + toplam, i].Text = Game[j, i].Text;
Game[j, i].Text = "";
}
}
}
}
}
if (asagiKontrol == false && kazan1 == true)
{
sound.Play();
}
if (asagiKontrol == false && kazan1 == false)
{
sound2.Play();
}
if (yeniSayi == true)
{
sayiUret();
}
}//ASAĞI İŞLEMİ
public void solHaraket()
{
bool solKontrol=true;
bool kazan1 = false;
bool yeniSayi = false;
Label[,] Game = {
{lbl1,lbl2,lbl3,lbl4},
{lbl5,lbl6,lbl7,lbl8},
{lbl9,lbl10,lbl11,lbl12},
{lbl13,lbl14,lbl15,lbl16}
};
for (int i = 0; i < 4; i++)
{
int toplam = 0;
for (int j =0; j <4; j++)
{
for (int k = j + 1; k < 4;k++ )
{
if(Game[i,k].Text!=""){
if(Game[i,j].Text==Game[i,k].Text){
kazan1 = true;
}
break;
}
}
if (Game[i,j].Text == "")
{
toplam++;
}
else
{
for (int m = j-1; m >= 0; m--)
{
if (Game[i, m].Text == "")
{
yeniSayi = true;
break;
}
}
if (j + 1 < 4)
{
bool extrasayi = true;
for (int k = j + 1; k <4; k++)
{
if (Game[i,k].Text != "")
{
if (Game[i,j].Text == Game[i,k].Text)
{
solKontrol = false;
lblScore.Text = (int.Parse(lblScore.Text) + int.Parse(Game[i, j].Text) * 2).ToString();
yeniSayi = true;
extrasayi = false;
Game[i,j].Text = (int.Parse(Game[i,j].Text) * 2).ToString();
if (toplam != 0)
{
Game[i,j - toplam].Text = Game[i,j].Text;
Game[i,j].Text = "";
}
Game[i,k].Text = "";
break;
}
break;
}
}
if (extrasayi == true && toplam != 0)
{
solKontrol = false;
Game[i,j - toplam].Text = Game[i,j].Text;
Game[i,j].Text = "";
}
}
else
{
if (toplam != 0)
{
solKontrol = false;
Game[i,j - toplam].Text = Game[i, j].Text;
Game[i,j].Text = "";
}
}
}
}
}
if (solKontrol == false && kazan1 == true)
{
sound.Play();
}
if (solKontrol == false && kazan1 == false)
{
sound2.Play();
}
if (yeniSayi == true)
{
sayiUret();
}
}//SOL HARAKET
public void sagHaraket()
{ //bu fonksiyon sag haraketi kontrol eder.
bool sagKontrol = true;
bool kazan1=false;
bool yeniSayi = false;
Label[,] Game = {
{lbl1,lbl2,lbl3,lbl4},
{lbl5,lbl6,lbl7,lbl8},
{lbl9,lbl10,lbl11,lbl12},
{lbl13,lbl14,lbl15,lbl16}
};
for (int i = 0; i < 4; i++)
{
int toplam = 0;
for (int j = 3; j >= 0; j--)
{
for (int k = j - 1; k >= 0;k-- )
{
if(Game[i,k].Text!=""){
if(Game[i,k].Text==Game[i,j].Text){
kazan1 = true;
}
break;
}
}
if (Game[i,j].Text == "")
{
toplam++;
}
else
{
for (int m = j + 1; m < 4; m++)
{
if (Game[i,m].Text == "")
{
yeniSayi = true;
break;
}
}
if (j - 1 >= 0)
{
bool extrasayi = true;
for (int k = j - 1; k >= 0; k--)
{
if (Game[i,k].Text != "")
{
if (Game[i,j].Text == Game[i,k].Text)
{
sagKontrol = false;
lblScore.Text = (int.Parse(lblScore.Text) + int.Parse(Game[i, j].Text) * 2).ToString();
yeniSayi = true;
extrasayi = false;
Game[i,j].Text = (int.Parse(Game[i,j].Text) * 2).ToString();
if (toplam != 0)
{
Game[i, j+toplam].Text = Game[ i,j].Text;
Game[i,j].Text = "";
}
Game[i,k].Text = "";
break;
}
break;
}
}
if (extrasayi == true && toplam != 0)
{
sagKontrol = false;
Game[i,j+ toplam].Text = Game[i,j].Text;
Game[ i,j].Text = "";
}
}
else
{
if (toplam != 0)
{
sagKontrol = false;
Game[ i,j + toplam].Text = Game[ i,j].Text;
Game[ i,j].Text = "";
}
}
}
}
}
if (sagKontrol == false && kazan1 == true)
{
sound.Play();//sayılar toplanırsa bu ses çıkarır
}
if (sagKontrol == false && kazan1 == false)
{
sound2.Play();//eger toplanıcak sayı yoksa bu ses çıkar
}
if (yeniSayi == true)
{
sayiUret();//yeniden sayı üretmemizi saglar
}
}// SAG HARAKET
public bool sayiYaz() {
Label[,] Game = { //16 text den dizi oluşturuyoruz.
{lbl1,lbl2,lbl3,lbl4},
{lbl5,lbl6,lbl7,lbl8},
{lbl9,lbl10,lbl11,lbl12},
{lbl13,lbl14,lbl15,lbl16}
};
for (int i = 0; i < 4;i++ )
{
for (int j = 0; j < 4;j++ )
{
if(Game[i,j].Text==""){
return false;
}
for (int k = j+1; k < 4;k++ )
{
if(Game[i,j].Text!=""){
if(Game[i,j].Text==Game[i,k].Text){
return false;
}
break;
}
}
}
}
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
if (Game[j, i].Text == "")
{
return false;
}
for (int k = j + 1; k < 4; k++)
{
if (Game[k,i].Text != "")//boş olan text kontrolu
{
if (Game[j,i].Text == Game[k,i].Text)//boş ise yaz
{
return false;
}
break;
}
}
}
}
return true;
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (sayiYaz() == false)//yeni sayı üretme degeri 0 dönmesi lazım tuşları kullanabilmemiz için
{
if (e.KeyCode == Keys.Up)
{
yukariHareket();//yukarı ok a basıldıgında çalışır
}
if (e.KeyCode == Keys.Down)
{
asagiHaraket();//asagı ok a basıldıgında çalışır
}
if (e.KeyCode == Keys.Left)
{
solHaraket();//sol ok a basıldıgında çalışır
}
if (e.KeyCode == Keys.Right)
{
sagHaraket();//sag ok a basıldıgında çalışır
}
}
else {
// continueToolStripMenuItem.Visible = false;
// lblGameOver.Text = "OYUN BİTTİ";//oyun biterse bunu ekrana basıyoruz.
tekrarOyun = false;
lblGameOver.Visible = true;
btnNewGame.Visible = true;
btnExit.Visible = true;
btnExit.Enabled = true;
btnNewGame.Enabled = true;
this.KeyDown -= new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
}
}
private void btnNewGame_Click(object sender, EventArgs e)
{ //bu fonksiyon game over oldukdan sonra yeniden baslatmaya yarar. bir alttaki new game ise oyun devam ederken yeniden baslatmak istersek.
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
lblScore.Text = "0";//yeni oyun oldugu için score text i 0
Label[,] Game = { //16 tane labeldan dizi oluşturuyoruz
{lbl1,lbl2,lbl3,lbl4},
{lbl5,lbl6,lbl7,lbl8},
{lbl9,lbl10,lbl11,lbl12},
{lbl13,lbl14,lbl15,lbl16}
};
lblGameOver.Visible = false;
btnExit.Visible = false;
tekrarOyun = true;
btnNewGame.Visible = false;
btnNewGame.Enabled = false;
btnExit.Enabled = false;
for (int i = 0; i < 4;i++ )//16 tane textimiz oldugu için bunu iç içe 2 tane for döngüsüyle yapıyoruz
{
for (int j = 0; j < 4;j++ )
{
Game[i, j].Text = "";
}
}
sayiUret();
sayiUret();
sayiUret();// baslangıçta 3 sayı üretiyoruz.
}
private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();//programı kapatmamızı saglayan fonksiyon
}
private void newGameToolStripMenuItem_Click(object sender, EventArgs e)
{
//label1.Visible = true;
//continueToolStripMenuItem.Visible = true;
lblAbout.Visible = false;
label2.Visible = true;
lblScore.Visible = true;
if(tekrarOyun==false){
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
}
tekrarOyun = true;
lblScore.Text = "0";
Label[,] Game = { //16 tane labeldan dizi oluşturuyoruz
{lbl1,lbl2,lbl3,lbl4},
{lbl5,lbl6,lbl7,lbl8},
{lbl9,lbl10,lbl11,lbl12},
{lbl13,lbl14,lbl15,lbl16}
};
lblGameOver.Visible = false;
btnExit.Visible = false;
btnNewGame.Visible = false;
btnNewGame.Enabled = false;
btnExit.Enabled = false;
for (int i = 0; i < 4; i++)//16 tane textimiz oldugu için bunu iç içe 2 tane for döngüsüyle yapıyoruz
{
for (int j = 0; j < 4; j++)
{
Game[i, j].Visible = true;
Game[i, j].Text = "";//16 tane textden rastgele 3 tane sayı ile dolduruyoruz. i ve j degişkenlerine.
}
}
sayiUret();
sayiUret();
sayiUret();// baslangıçta 3 tane sayı vererek baslıyoruz
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();//programın kapanmasını saglar
}
private void btnNewGame_MouseHover(object sender, EventArgs e)
{
btnNewGame.BackColor = System.Drawing.Color.Green;//buttonun rengini belirler
}
private void btnNewGame_MouseLeave(object sender, EventArgs e)
{
btnNewGame.BackColor = System.Drawing.Color.Orange;//buttonun rengini belirler
}
private void btnExit_MouseHover(object sender, EventArgs e)
{
btnExit.BackColor = System.Drawing.Color.Green;//buttonun rengini belirler
}
private void btnExit_MouseLeave(object sender, EventArgs e)
{
btnExit.BackColor = System.Drawing.Color.Orange;//buttonun rengini belirler
}
private void ptbImage_Click(object sender, EventArgs e)
{
}
private void menuToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void lbl3_Click(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
}
private void lblScore_Click(object sender, EventArgs e)
{
}
private void lblGameOver_Click(object sender, EventArgs e)
{
}
//private void bilgiToolStripMenuItem_Click(object sender, EventArgs e)
//{
// //MessageBox.Show("Bu Oyun Yön tuşlarıyla oynanır. Bol Şans..");//mesajbox ile bilgi veriyoruz
//}
private void gamePlayToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void ınformationToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
}
}
}
<?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>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>73</value>
</metadata>
</root>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace game2048
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Game2048());
}
}
}
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("game2048")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("game2048")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[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("7490777d-e132-43d0-b623-c717ea00f073")]
// 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")]
//------------------------------------------------------------------------------
// <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 game2048.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", "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() {
}
/// <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("game2048.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;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<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" />
</root>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace game2048.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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;
}
}
}
}
<?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>
  • Here the coding stuff is available which would be bugs-free. There should be people who really looking for help with coding and would able to grab it here. Thumbs up and continue with your wise recommendations how to quit a job here these are helping.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment