BattleShip Game App using Swing

  • Follow


Hi,For a class I am taking I have to write a Battleship game.  I am usingSwing to program a GUI and I would like to make it so that there aretwo panes holding the 11x11 grid for the spots on the computer's andthe player's boards.  I would like the position of the ships on theplayers board to be marked somehow and I would like the user to beable to click on the a spot on the other board to choose their shotwhen it is there turn.  I would like to also prevent them fromchoosing the same spot twice.What should I use to create the boards in Swing?  What would be thebest way to try to accomplish something like this?  I would also liketo use images to show results, red X if its a miss, and an explosionimage if it is on.  And also an image of a ship for the positions onthe player's board.My project does not require all this GUI work, it is more text basedusing Java Sockets but I am interested in the GUI part and Swing.Thanks very much in advance for any direction you provide and I lookforward to the challenge.  I am an average Java developer but not thatgreat when it comes to GUIs.Thanks.
0
Reply KDawg44 (132) 5/23/2007 11:18:14 PM

On May 24, 9:18 am, KDawg44 <KDaw...@gmail.com> wrote:
....
> For a class I am taking I have to write ..

...multiple posts?

Please refrain from multi-posting in future.
<http://www.physci.org/codes/javafaq.html#xpost>

(X-post to c.l.j.p./g., w/ f-u to c.l.j.p. only)

Andrew T.

0
Reply Andrew 5/23/2007 11:38:15 PM


1 Replies
480 Views

(page loaded in 0.081 seconds)

Similiar Articles:













7/23/2012 7:58:00 AM


Reply: