DCaddies

Magic Cube Live Stream

Sep 15th, 2018
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  3.         aaa = 0
  4.         asa = 0
  5.         TextBox1.Text = 0
  6.         TextBox2.Text = 0
  7.         TextBox3.Text = 0
  8.         TextBox4.Text = 0
  9.         TextBox5.Text = 0
  10.         TextBox6.Text = 0
  11.         TextBox7.Text = 0
  12.         TextBox8.Text = 0
  13.         TextBox9.Text = 0
  14.         Timer1.Start()
  15.     End Sub
  16.     Dim asa As Integer
  17.     Dim aaa As String = 0
  18.     Private Sub trys()
  19.         asa = asa + 1
  20.         If asa = 500 Then
  21.             aaa = 1
  22.             Label8.Text = "crash"
  23.         End If
  24.     End Sub
  25.     Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  26.         Timer1.Stop()
  27.         Dim sis As Integer = 0
  28.         Dim rn As New Random
  29.         Dim value As Integer = 0
  30. jump1:
  31.         trys()
  32.         If aaa = 1 Then
  33.             Exit Sub
  34.         End If
  35.         Label8.Text = 1
  36.         value = rn.Next(1, 10)
  37.         TextBox1.Text = value
  38. jump2:
  39.         trys()
  40.         If aaa = 1 Then
  41.             Exit Sub
  42.         End If
  43.         Label8.Text = 2
  44.         value = rn.Next(1, 10)
  45.         If value = TextBox1.Text Then
  46.             GoTo jump2
  47.         Else
  48.             TextBox2.Text = value
  49.         End If
  50. jump3:
  51.         trys()
  52.         If aaa = 1 Then
  53.             Exit Sub
  54.         End If
  55.         Label8.Text = 3
  56.         value = rn.Next(1, 10)
  57.         If value = TextBox1.Text Or value = TextBox3.Text Then
  58.             GoTo jump3
  59.         Else
  60.             TextBox3.Text = value
  61.         End If
  62.         Label6.Text = TextBox1.Text + +TextBox2.Text + +TextBox3.Text
  63.         If Label6.Text = "15" Then
  64.         Else
  65.             GoTo jump1
  66.         End If
  67. jump4:
  68.         trys()
  69.         If aaa = 1 Then
  70.             Exit Sub
  71.         End If
  72.         Label8.Text = 4
  73.         value = rn.Next(1, 10)
  74.         If value = TextBox1.Text Or value = TextBox2.Text Or value = TextBox3.Text Then
  75.             GoTo jump4
  76.         Else
  77.             TextBox4.Text = value
  78.         End If
  79. jump5:
  80.         trys()
  81.         If aaa = 1 Then
  82.             Exit Sub
  83.         End If
  84.         Label8.Text = 5
  85.         value = rn.Next(1, 10)
  86.         If value = TextBox1.Text Or value = TextBox2.Text Or value = TextBox3.Text Or value = TextBox4.Text Then
  87.             GoTo jump5
  88.         Else
  89.             TextBox7.Text = value
  90.         End If
  91.         Label1.Text = TextBox1.Text + +TextBox4.Text + +TextBox7.Text
  92.         If Label1.Text = "15" Then
  93.         Else
  94.             GoTo jump4
  95.         End If
  96. jump6:
  97.         trys()
  98.         If aaa = 1 Then
  99.             Exit Sub
  100.         End If
  101.         Label8.Text = 6
  102.         value = rn.Next(1, 10)
  103.         If value = TextBox1.Text Or value = TextBox2.Text Or value = TextBox3.Text Or value = TextBox4.Text Or value = TextBox7.Text Then
  104.             GoTo jump6
  105.         Else
  106.             TextBox5.Text = value
  107.         End If
  108. jump7:
  109.         trys()
  110.         If aaa = 1 Then
  111.             Exit Sub
  112.         End If
  113.         Label8.Text = 7
  114.         value = rn.Next(1, 10)
  115.         If value = TextBox1.Text Or value = TextBox2.Text Or value = TextBox3.Text Or value = TextBox4.Text Or value = TextBox7.Text Or value = TextBox5.Text Then
  116.             GoTo jump7
  117.         Else
  118.             TextBox8.Text = value
  119.         End If
  120.         Label2.Text = TextBox2.Text + +TextBox5.Text + +TextBox8.Text
  121.         If Label2.Text = "15" Then
  122.             If TextBox4.Text + +TextBox5.Text < 15 Then
  123.                 If TextBox7.Text + +TextBox8.Text < 15 Then
  124.  
  125.                 Else
  126.                     GoTo jump6
  127.                 End If
  128.             Else
  129.                 GoTo jump6
  130.             End If
  131.         Else
  132.             GoTo jump6
  133.         End If
  134.  
  135. jump8:
  136.         trys()
  137.         If aaa = 1 Then
  138.             Exit Sub
  139.         End If
  140.         Label8.Text = 8
  141.         value = rn.Next(1, 10)
  142.         If value = TextBox1.Text Or value = TextBox2.Text Or value = TextBox3.Text Or value = TextBox4.Text Or value = TextBox7.Text Or value = TextBox5.Text Then
  143.             GoTo jump8
  144.         Else
  145.             TextBox6.Text = value
  146.         End If
  147.  
  148. jump9:
  149.         trys()
  150.         If aaa = 1 Then
  151.             Exit Sub
  152.         End If
  153.         Label8.Text = 9
  154.         value = rn.Next(1, 10)
  155.         If value = TextBox1.Text Or value = TextBox2.Text Or value = TextBox3.Text Or value = TextBox4.Text Or value = TextBox7.Text Or value = TextBox5.Text Or value = TextBox6.Text Then
  156.             GoTo jump9
  157.         Else
  158.             TextBox9.Text = value
  159.         End If
  160.  
  161.         Label5.Text = TextBox4.Text + +TextBox5.Text + +TextBox6.Text
  162.         If Label5.Text = "15" Then
  163.             Label4.Text = TextBox7.Text + +TextBox8.Text + +TextBox9.Text
  164.             If Label4.Text = "15" Then
  165.                 Label8.Text = "complete"
  166.                 Label3.Text = TextBox3.Text + +TextBox6.Text + +TextBox9.Text
  167.                 Label7.Text = TextBox1.Text + +TextBox5.Text + +TextBox9.Text
  168.                 Label9.Text = TextBox3.Text + +TextBox5.Text + +TextBox7.Text
  169.                 Exit Sub
  170.             Else
  171.                 GoTo jump9
  172.             End If
  173.         Else
  174.             GoTo jump8
  175.         End If
  176.  
  177.     End Sub
  178.  
  179. End Class
Add Comment
Please, Sign In to add comment