It's indeed sad that we've stopped our operations for the past two years. We're trying our best to bring back the services you enjoyed in a new-fashioned way which promotes our community farther. Though we've stopped our services past 2 years ago, it was brought to my attention that some users are using our modules for fraud and are monetizing our content for their gain. Therefore, with immediate effect, all the users registered after our exit are terminated and our earlier community of 12589 users will be archived and uneditable in the database. All the web content, blogs, entries, videos, and sessions will be DELETED except for our basic game programs. Those programs were my first pillars to start this revolution. That bondage prevents me from the deletion of those programs and this website as a whole. |
// 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 » |
#include <iostream>
#include <cstdlib>
#include<ctime>
#include <string>
using namespace std;
const int MAX_TRIES=5;
int letterFill (
...
Read more »
|
|
This is me who created this website.If you have any queries, reach me out at Facebook profile name - Sai Vittal B. |