Log in

View Full Version : Sudoku bot



I Am Legend
02-05-2012, 12:36 PM
so im making a sudoku bot , was wondering how i can store number


e.g. i wanna store ( a,b,c,d ) in spot[2][1]
2 is row and 1 is coloumn

in simba ty

nokkasiili
02-05-2012, 12:46 PM
Multidimensional array ?

I Am Legend
02-05-2012, 12:52 PM
and how do i do that ?

Richard
02-05-2012, 12:55 PM
T2DIntegerArray allows you store integers in two dimensions.

However, I assume you'll have fixed array lengths given that it's for the sudoku bot? Then I'd recommend doing it this way:

Array [0..{length here}] of Array [0..{length here}] of Integer;