|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
anyone wanna help me with a mine game code i m stuck :S
A computerized minefield is divided into a 10x10 matrix. The position of the mines generated at random. The number of mines is provided as the command line argument and it is a value between 1 and 12. When the value is not provided at the command line argument, the program should generate it randomly, but still it will be a value between 1 and 12.
The program generates the starting position at any column in the row 9 of the matrix at random. (It is indicated here with *). It is required to trace a path, from the starting position, through the minefield without stepping on them, and finish at the northern perimeter of the square. (Corresponds to row 0.) The only legal move is to any adjacent cell. The program should display the path as the sequence of ordered pairs along with the total number of ordered pair. Only at the end of the stimulation, the program should reveal the coordinates of the mine positions. Position of the mines will be displayed in a similar manner. Design proper classes to represent the minefield and to generate the route from row 9 to row 0 following legal moves and avoiding mines. |
|
#2
|
||||
|
||||
|
RE: anyone wanna help me with a mine game code i m stuck :S
help or write? help - maybe. write - nope.
|
|
#3
|
|||
|
|||
|
RE: anyone wanna help me with a mine game code i m stuck :S
lol anything wrong with u writing ur version of the code cos if u dont believe me that i have done it i guess next time i ll have to paste the code that i have done so far
|
|
#4
|
||||
|
||||
|
RE: anyone wanna help me with a mine game code i m stuck :S
thats a good idea,
where are you stuck? |
![]() |
| Viewing: Codewalkers Forums > General > General Chat > anyone wanna help me with a mine game code i m stuck :S |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|