Jump to content
  • Advertisement
Sign in to follow this  
derek7

Untitled

This topic is 4933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The black is mine. first mine in grid is invisible. When I dig mine in a grid if in the grid there are no mine,I need show neighbor gird in which there are no mine. my code below: neighbor getneighbor(grid)//this is function that get neightbor gird given a grid for (int i=0;i<numofgrid;i++) nomineneighbor() { getneighbor(grid); for (each in neighbor == no mine) save nomineneighbor(); } [Edited by - derek7 on June 17, 2005 2:27:26 PM]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
start with what it is supposed to be and do and follow with what is wrong that you need help with. And breath.

Share this post


Link to post
Share on other sites
Quote:
Original post by derek7
When I dig mine in a grid if in the grid there are no mine,I need show neighbor gird in which there are no mine.


Sounds like Minesweeper.
But whats your problem? Is there something wrong with the code? And i dont get what you're trying to tell with the picture.. :/
So like the anonymous poster said, what is it supposed to be and what does it?

Share this post


Link to post
Share on other sites
Ok i *think* he's saying this (ive been to the pub so bear with me ;))

At the beginning all of the mines are invisible (obviously)

When the use clicks a mine, if there isnt a mine there then he wants to show which adjacent spaces have no mines also (i.e. remove these squares)

TBH i dont get the code.... ;)

You may want to post your function definitions etc....

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!