Untitled

Started by
5 comments, last by Oberon_Command 18 years, 10 months ago
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]
Advertisement
You are going to have to clarify this a bit im afraid.

ace
Is there a question here?
start with what it is supposed to be and do and follow with what is wrong that you need help with. And breath.
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?
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....

Quote:Original post by cyph
TBH i dont get the code.... ;)


Looks like pseudocode to me.

This topic is closed to new replies.

Advertisement