Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cady666

macrumors newbie
Original poster
Mar 14, 2008
2
0
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

macrumors G5
Jan 5, 2006
12,917
2,168
Redondo Beach, California
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

macrumors newbie
Original poster
Mar 14, 2008
2
0
ok thank you very much. i was just gonna jump in it but breaking it up sounds way better
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.