What is a tic tac toe game? What do we want our tic tac toe game to do?
Rob
SCJP 1.4
Originally posted by Jennifer Bhamoo:
I like this tutorial idea!![]()
How do the X's and O's get on the board, are we doing a drag and drop of an X or O, or just a click on the board and an X or O will appear depending on who's turn?
I would think to start off with since we are keeping this basic would be a simple click in the square.
SCJP 1.4<br /><a href="http://www.cise.ufl.edu/~sih" target="_blank" rel="nofollow">www.cise.ufl.edu/~sih</a>
Dave
SCJP 1.4<br /><a href="http://www.cise.ufl.edu/~sih" target="_blank" rel="nofollow">www.cise.ufl.edu/~sih</a>
Originally posted by Dirk Schreckmann:
The final version of our Requirements Statement is complete.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by David Weitzman:
Michael this is the beginner forum -- do we know what polymorphism is?![]()
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Dirk Schreckmann:
Where to start? I'll take David's suggestion and create an applet to display the playing board.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Dirk Schreckmann:
What don't you like about my above example? What do you like about it? What would you do?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Michael Matola:
Originally posted by David Weitzman:
[qb]As for getting images without getCodebase() and the issue that multiple cells could use different X and O images, wouldn't a static call of Class.getResource("/X.gif") do the job?
Me -- I find the Class class far more intimidating than polymorphism.
[/QB]
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Michael Matola:
What about ClassLoader.getSystemResource(...)?
Even more so.![]()
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
Sorry for joining late - I somehow missed following this thread, probably because I somehow expected the requirements discussion to happen in its own thread... :roll:
Good point. The fourth version of our Requirements Statement includes this addition.IMO one requirement is missing: "Should be playable from the Web." (Notice that this requirement doesn't mention the use of applets as I think this is an implementation issue - we could also use Servlets or Webstart to meet this requirement.)
A good point to consider. Initially I thought to avoid too many advanced topics at first. While polymorphism is an advanced topic, it's not that hard to grasp the concept of it - especially if it's introduced in a nice and friendly and simple way as Bradley Kjell does in his Java tutorial (Introduction to Computer Science using Java) beginning with chapter 50 (as Ilja previously pointed out), and don't miss the Campfire story How My Dog Learned Polymorphism. So, let's use polymorphism if it makes sense and can be implemented very simply in this first project.Originally posted by David Weitzman:
Michael this is the beginner forum -- do we know what polymorphism is?
That would probably work.As for getting images without getCodebase() and the issue that multiple cells could use different X and O images, wouldn't a static call of Class.getResource("/X.gif") do the job?
Don't get me started about those stupid light bulbs. |