• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie: TicTacToe Project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: TicTacToe Project


  • Subject: Re: Newbie: TicTacToe Project
  • From: "John C. Randolph" <email@hidden>
  • Date: Mon, 29 May 2006 23:49:16 -0700


On May 29, 2006, at 11:20 PM, Jason Barker wrote:

Hi everyone,

As one of my first attempts at creating an application, I have put together a little TicTacToe game. I am wondering if anyone would mind trying it out as well as looking through my code to give me any advice, constructive criticism, or any pointers. I'm not sure how orthodox some of my code is so feel free to steer me in the right direction.

A zip file containing the game and project files is located at: http://www.neuromight.com/cocoa/TicTacToe.zip

Jason,

I took a look at your project. First impression I had was that you have three unnecessary classes. I'd recommend just using an NSMatrix with plain old image cells in it. Secondly, it looks like you're not using an up to date version of Xcode. Go ahead and download the latest one from developer.apple.com.

Lastly, I'd take a look at the wikipedia article on the magic square to see the simplest way of doing the math to check for a completed game.

-jcr


John C. Randolph <email@hidden> (408) 914-0013 RoamingCocoa Engineer, Available at great Expense and Inconvenience.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Newbie: TicTacToe Project (From: Jason Barker <email@hidden>)

  • Prev by Date: Accessing System default sounds
  • Next by Date: Re: Image cache: Where is it and how do I refresh it?
  • Previous by thread: Newbie: TicTacToe Project
  • Next by thread: Accessing System default sounds
  • Index(es):
    • Date
    • Thread