HI guys!

Im making a sudoku game. Ive got all the numbers in a 9 by 9 vector. But im unsure how to proceed. How do i work out which blank space (selected by the mouse) corrisponds with which blank space in the vector? I need it to work out which space to replace with the number that the user wants to put in. Im not sure if ive explained that very well, any idea are appretiated.

Thanks in advance!

Do any of these help?
I haven't tried any myself, although I plan to do so in the near future.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.