Sudoku game in java with source code

broken image
broken image

I -= squareExp2 - 2 End If For j = i To xĬount shows how many possibilities were in the previous position, and I initialize it to one so it won't enter when I start the loop.

broken image

To get every number inside a row, based on a position (which is i in these examples): Why do all these steps to fill these arrays? To be able to use them this way: I2_interleaved_offset + j1_interleaved_offset Offset_value = j_offset_value + i2_offset J1_interleaved_offset = 0 For j1 As Integer = 0 To iSquare - 1 Dim box As Integer Dim Square2 As Integer = iSquare * iSquareĭim Square3 As Integer = Square2 * iSquareĭim Square4 As Integer = Square2 * Square2ĭim j2_offset As Integer, j1_offset As Integer Dim j1_interleaved_offset As Integer, i2_offset As Integer Dim i2_interleaved_offset As Integer, j_offset_value As Integer Dim offset_value As Integer, interleaved_value As Integer For j2 As Integer = 0 To iSquare - 1

broken image