Site menu
Calendar
«  October 2018  »
SuMoTuWeThFrSa
 123456
78910111213
14151617181920
21222324252627
28293031
// MINESWEEPER
void main()
{
int b;
do
{
cout << "Enter number of squares per side (2 - 10)" << endl;
cin >> b;
}while(b < 1 && b >= 10);
int board[b][b]; //0 - 8 = # of mines, 9 is mine
int revealed[b][b]; //1 is revealed
int i = 0;
int j = 0;
int x = 0;
int y = 0;
int z; //number of mines
int q;
int t = 0; //game over input
int dead = 0;
do
{
cout << "How many mines? (1 - " << ((b*b)-1) << ")" << endl;
cin >> z;
}while(z <= 0 && z >= ((b*b)-1));
for(i=0;i<b;i++)
for(j=0;j<b;j++)
board[i][j] = 0;
i = random(i, b);
j = random(j, b);
cout << "Generating board..." << endl;
do
{
i+=3;
j+=6;
x = random(i, b);
y = random(j, b);
if(board[y][x] != 9)
{
board[y][x] = 9;
... Read more »
Views: 1299 | Added by: Chinnu1 | Date: 13/June/2014 | Comments (0)


#include <iostream>
#include <cstdlib>
#include<ctime>
#include <string>
using namespace std;

const int MAX_TRIES=5;
int letterFill (
		... 
		
			Read more »
		
Views: 1384 | Added by: Chinnu | Date: 21/March/2014 | Comments (2)

#include <iostream>
using namespace std;

char square[10] = {'o','1','2','3','4','5','6','7','8','9'};
		... 
		
			Read more »
		
Views: 796 | Added by: Chinnu | Date: 15/March/2014 | Comments (4)

This is me who created this website.If you have any dout please call to 9441223355 or facebook ID is Sai Vittal B.
Views: 11119 | Added by: Chinnu | Date: 01/September/2012 | Comments (11)

Entries archive
Our poll
Rate my site
Total of answers: 12587
Site friends
  • Create a free website
  • Online Desktop
  • Free Online Games
  • Video Tutorials
  • All HTML Tags
  • Browser Kits
  • Statistics

    Total online: 1
    Guests: 1
    Users: 0