close

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 WindowsFormsApplication2
{
public partial class Form1 : Form
{
int c = 1, d, fuck1, fuck2, fuck3 ,fuck11,fuck12,fuck21,fuck22,fuck31,fuck32;
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
Random randomc1 = new Random(Guid.NewGuid().GetHashCode());
fuck1 = randomc1.Next(1, 10);
fuck2 = randomc1.Next(1, 10);
fuck3 = randomc1.Next(1, 10);
fuck11 = randomc1.Next(1, 10);
fuck12 = randomc1.Next(1, 10);
fuck21 = randomc1.Next(1, 10);
fuck31 = randomc1.Next(1, 10);
fuck22 = randomc1.Next(1, 10);
fuck32 = randomc1.Next(1, 10);
button1.Text = fuck1.ToString();
button2.Text = fuck2.ToString();
button3.Text = fuck3.ToString();
button6.Text = fuck12.ToString();
button7.Text = fuck22.ToString();
button8.Text = fuck32.ToString();
button9.Text = fuck11.ToString();
button10.Text = fuck21.ToString();
button11.Text = fuck31.ToString();
}
private void button4_Click(object sender, EventArgs e)
{
c = c + 1;
d = c % 2;
if (d == 0) timer1.Enabled = true;
else timer1.Enabled = false;
button4.Text = d.ToString();
if (fuck1 != 9)
fuck11 = fuck1 + 1;
else fuck11 = 1;
if (fuck2 != 9)
fuck21 = fuck2 + 1;
else fuck21 = 1;
if (fuck3 != 9)
fuck31 = fuck3 + 1;
else fuck31 = 1;
if (fuck1 != 1)
fuck12 = fuck1 - 1;
else fuck12 = 9;
if (fuck2 != 1)
fuck22 = fuck2 - 1;
else fuck22 = 9;
if (fuck3 != 1)
fuck32 = fuck3 - 1;
else fuck32 = 9;
button9.Text = fuck11.ToString();
button10.Text = fuck21.ToString();
button11.Text = fuck31.ToString();
button6.Text = fuck12.ToString();
button7.Text = fuck22.ToString();
button8.Text = fuck32.ToString();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
}
private void button5_Click(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
}
private void button6_Click(object sender, EventArgs e)
{
}
private void button7_Click(object sender, EventArgs e)
{
}
private void button9_Click(object sender, EventArgs e)
{
}
private void timer2_Tick(object sender, EventArgs e)
{
if(timer1.Enabled==false)
if (fuck1 == fuck2 && fuck3 == fuck2 &&fuck1 == fuck3)
button5.Text = "You Win";
}
}
}
全站熱搜