posted 17 years ago
ok here is my code...
it's for a battle ship game...(just the GUI though).
_________________________________
Here is the JFrame...
_________________________________
ok now in the Driver class i wrote a coulpe of
for loops to draw each grid board...
the only problem I can see, that will be a pain
in the future, is making it to where the mouse
interacts with each individual square on the grids...
here is the for loop code separate..
im just not sure, do I need to make a "Grid Board" class?
because the only way to get the squares to do anything right
now, I would have to know every givin point in each square..
that's a good total of about.. oh... 40,000 points...
for each grid table.
If you can help please do,
Justin
You down with OOP? Yeah you know me!