Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Battleship game
Old
boondocks
Guest
 
Status:
Posts: n/a
Default Battleship game - 05-16-2011, 05: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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.