Re: Newbie: TicTacToe Project
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