SRL Archive - Help

Sudoku bot


I Am Legend

2012-02-05 07:36:42

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

2012-02-05 07:46:48

Multidimensional array ?

I Am Legend

2012-02-05 07:52:27

and how do i do that ?

Richard

2012-02-05 07:55:02

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;