PDA

View Full Version : Xcode Help




cady666
Mar 14, 2008, 11:06 AM
hello i am new to this forum. i was wondering i have been working with xcode for about 3 months and getting to no the basics. THis is for a class project and i need to make a basic Sudoku like game from xcode. I need to it to generate the numbers and such real basic but i really have no clue where to start.

please anyone who can help i would greatly appreciate it.



ChrisA
Mar 14, 2008, 11:49 AM
hello i am new to this forum. i was wondering i have been working with xcode for about 3 months and getting to no the basics. THis is for a class project and i need to make a basic Sudoku like game from xcode. I need to it to generate the numbers and such real basic but i really have no clue where to start.

please anyone who can help i would greatly appreciate it.

It sounds like you've finally gotten a problem hard enough that you can't jump straight into code and will have to do some design work first. First step is to devide the problem up into smaller problems. Theobvious division here is a class that hadles the board and then some kind of user interface.

Starting with the board class. Figure out what kind of data structure you are going to use represend the Sudoku board. Likely this will be an array with the same diminsion as the board. Next deside what you need to store in each square. Just an integer or likely some more data. What you store in each squear will likey evolve as you design the methods that manipulate the board.

There is your start

cady666
Mar 16, 2008, 10:11 AM
ok thank you very much. i was just gonna jump in it but breaking it up sounds way better