Xcode Help

Discussion in 'Mac Programming' started by cady666, Mar 14, 2008.

  1. macrumors newbie

    Mar 14, 2008
    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.
  2. macrumors G4

    Jan 5, 2006
    Redondo Beach, California
    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
  3. thread starter macrumors newbie

    Mar 14, 2008
    ok thank you very much. i was just gonna jump in it but breaking it up sounds way better

Share This Page