<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'i badly need ur help..' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'i badly need ur help..' posted on the 'C/C++ on Linux/Unix' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 04:16:27 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 04:16:27 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>i badly need ur help..</title>
      <link>http://www.programmersheaven.com/mb/ConLunix/418351/418351/i-badly-need-ur-help/</link>
      <description>Im trying to solve this problem..but dunno how..&lt;br /&gt;
im just a beginner using c++ as a language..&lt;br /&gt;
can anybody help me code this one??..pleaseeee..&lt;br /&gt;
pleaseee..any help is very much appreciated..&lt;br /&gt;
This is a one player game of a simplified version of the popular computer game&lt;br /&gt;
minesweeper. First, the user is asked if he or she wants to play on a 5x5 grid or 10x10&lt;br /&gt;
grid. You have two 2-dimensional arrays that contains information about your grid. An&lt;br /&gt;
entry in the array should either contain a 0 or 1. A 1 signifies that there is a bomb in&lt;br /&gt;
that location, and a 0 if none.&lt;br /&gt;
For example, given the array:&lt;br /&gt;
int bombList5by5[][]={{0, 0, 1, 0, 0},&lt;br /&gt;
{0, 0, 0, 0, 0},&lt;br /&gt;
{0, 1, 0, 0, 0},&lt;br /&gt;
{0, 0, 0, 1, 1},&lt;br /&gt;
{0, 1, 1, 0, 0}};&lt;br /&gt;
Given the bomb list, we have 6 bombs on our list. The bombs are located in (row,col)&lt;br /&gt;
cells, (0,2), (2,1), (3,3), (3,4), (4,1) and (4,2).&lt;br /&gt;
If the user chooses a cell that contains a bomb, the game ends and all the bombs are&lt;br /&gt;
displayed. If the user chooses a cell that does not contain a bomb, a number appears at&lt;br /&gt;
that location indicating the number of neighbors that contain bombs. The game should&lt;br /&gt;
end when all the cells that do not contain bombs have been marked (player wins) or&lt;br /&gt;
when the user steps on a bomb(player loses).&lt;br /&gt;
Here's a sample output of the game, given the bombList5by5.&lt;br /&gt;
Welcome to Minesweeper!&lt;br /&gt;
Choose size of grid (Press 1 for 5x5, Press 2 for 10x10): 1&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
Enter row and column of the cell you want to open[row col]: 1 1&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [2] [ ] [ ] [ ]&lt;br /&gt;
[ ] [ ] [] [ ] [ ]&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
Enter row and column of the cell you want to open[row col]: 3 2&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [2 ] [ ] [] [ ]&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [ ] [4 ] [ ] [ ]&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
Enter row and column of the cell you want to open[row col]: 0 2&lt;br /&gt;
[] [ ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [2] [ ] [] [ ]&lt;br /&gt;
[ ] [X ] [ ] [ ] [ ]&lt;br /&gt;
[ ] [ ] [4] [ ] [ ]&lt;br /&gt;
[ ] [ ] [ ] [ ] [ ]&lt;br /&gt;
Ooppps! You stepped on a bomb. Sorry, game over!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ConLunix/418351/418351/i-badly-need-ur-help/</guid>
      <pubDate>Thu, 19 Aug 2010 13:52:28 -0700</pubDate>
      <category>C/C++ on Linux/Unix</category>
    </item>
    <item>
      <title>Do not cross-post</title>
      <link>http://www.programmersheaven.com/mb/ConLunix/418351/418378/do-not-cross-post/#418378</link>
      <description>Please, do not cross-post your questions.&lt;br /&gt;
&lt;br /&gt;
Google is your friend.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ConLunix/418351/418378/do-not-cross-post/#418378</guid>
      <pubDate>Sat, 21 Aug 2010 00:47:51 -0700</pubDate>
      <category>C/C++ on Linux/Unix</category>
    </item>
  </channel>
</rss>