http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tictactoe game in java and other stuff



I'm here, begging for knowledge again. I have a couple of questions to ask 
and I hope for some help:

1. I'm in the process of creating a java tictactoe game. It's fairly easy 
enough, but there's only one problem. Now don't laugh, I've never been 
taught this kind of stuff, so be patient please. I want to have four files. 
One, as a starting menu asking one or two players, one that defines basic 
tictactoe behavior, and two more that inherit from the the one I just 
mentioned; one inherits for a one player mode, and the other for a two 
player mode. My problem is connectin the menu with the different modes. I 
know how to control button action, I just don't know how to refer to a 
certain class, or call it or something. If you need any more information on 
what I'm trying to do, just email me.

2. I was testing classes in the form of applets and applications. I was 
successful in everything except displaying graphics. I made an init() method 
that simply stated   setBackground(Color.red), but when I ran the java 
interpreter on the application file, it just ran with the same black 
background. The same thing goes for the paint() method, I can't get anything 
paint()ed.  I need some help in more ways than one...J.K.

3. When I create a panel for an applet, not the applet panel itself, I can't 
paint() on it either. I made a card layout and put two panels init() (in 
it), and I couldn't draw on either one. It's easy to draw to the applet, 
just draw using a graphics object, but when I try to draw on  a panel that I 
create, it doesn't work.

Those are all for now. All help is appreciated. Thanks,

p.s. does anyone think I have a weird sense of humor?




                                      Peace and may God
                                       direct your life
                                        Amen, Jonathan Smith

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html