Results 1 to 10 of 10

Thread: [RESOLVED] battleship help msflexgrid

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2013
    Posts
    16

    Resolved [RESOLVED] battleship help msflexgrid

    This is what the computer's grid looks like. How to make computer randomly place his ships on the grid. Place vertically or horizontally randomly. The ships are: 1 ship of length 5, 1 ship of length 4, 1 ship of length 3, 1 ship of length 3, 1 ship of length 2. The grid will still look like this after the ships are placed. When i click on the grid how do i check for a hit or a miss? if it's a hit i want to change the CellBackColor to red or if it's miss then i change CellBackColor to white.
    Edit: Ty for help
    Edit: when i click on computer's grid how do i detect if a ship is fully sunk?
    Attached Images Attached Images  
    Last edited by firezap; May 22nd, 2013 at 09:40 PM. Reason: new question

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width