Case Study: Sudukucubes?

Topics: Operations research, Mathematics, Statistics Pages: 4 (936 words) Published: August 30, 2015


Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
Timer1.Start()
T = 0
Dim index As Integer = ComboBox1.SelectedIndex
For x As Integer = 0 To 8
For y As Integer = 0 To 8
SudukuCubes(x, y).Text = ""
SudukuCubes(x, y).ReadOnly = False
Next
Next
Select Case index
Case Is = 0
'Easy Puzzle
level = "Easy"
For x As Integer = 0 To 8
For y As Integer = 0 To 8
SudukuCubes(x, y).Text = easyPuzzle(x, y)
If SudukuCubes(x, y).Text <> "" Then
SudukuCubes(x, y).ReadOnly = True...

End If
Next
Next
Case Is = 1
'Medium Puzzle
level = "Medium"
For x As Integer = 0 To 8
For y As Integer = 0 To 8
SudukuCubes(x, y).Text = MedPuzzle(x, y)
If SudukuCubes(x, y).Text <> "" Then
SudukuCubes(x, y).ReadOnly = True
End If
Next
Next
Case Is = 2
'Hard Puzzle
level = "Hard"
For x As Integer = 0 To 8
For y As Integer = 0 To 8
SudukuCubes(x, y).Text = HardPuzzle(x, y)
If SudukuCubes(x, y).Text <> "" Then
SudukuCubes(x, y).ReadOnly = True
End If
Next
Next
End Select
End Sub
'the combo box

'the colomn checker for all...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Case Study Essay
  • CASE STUDY Essay
  • Case Study Research Paper
  • Case Study Essay
  • case study Essay
  • Case Study Essay
  • CASE STUDIES Essay
  • Essay on Case Studies

Become a StudyMode Member

Sign Up - It's Free