Thread: Battleship game
View Single Post
Battleship game
Old
boondocks
Guest
 
Status:
Posts: n/a
Default Battleship game - 05-16-2011, 06:57 PM

ive been working on trying to design the game battleship, my experience with this program is mediocre and i can't figure out a few things


my world consist of a 72 squares facing down with walls separating two 36(6x6) square grids

13 14..............
7 8 9 10 11 12
1 2 3 4 5 6


So...
PLayer 1
C4=square 16
B5=square 11
Player2
C4=square 52
B5= square 47

I can't figure out how to ask user to place the ships to certain squares
I have had some ideas like type in the coordinates, or clicking on squares and enabling only the next logical boxes to be clicked next but can't get anything to work properly. I also thought about grouping (say the motorboat to two invisible squares) to the users two selected squares, but trying to orient the group to a certain position isn't working.

If anybody has some tips or ideas on how to ask the user to place ships so that they show on their grid I would be very appreciative.
Thamks
   
Reply With Quote