General Chat
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsGeneralGeneral Chat

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 6th, 2005, 03:41 PM
ahtram ahtram is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 ahtram User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old July 6th, 2005, 10:48 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,727 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 4 m 45 sec
Reputation Power: 6
RE: anyone wanna help me with a mine game code i m stuck :S

help or write? help - maybe. write - nope.

Reply With Quote
  #3  
Old July 8th, 2005, 03:11 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #4  
Old July 8th, 2005, 04:30 PM
kender's Avatar
kender kender is offline
Resident Kender
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: NW Missouri
Posts: 163 kender User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 20 m 51 sec
Reputation Power: 2
Send a message via ICQ to kender
RE: anyone wanna help me with a mine game code i m stuck :S

thats a good idea,
where are you stuck?

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralGeneral Chat > anyone wanna help me with a mine game code i m stuck :S


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway