-
Posts
1,002 -
Joined
-
Last visited
Posts posted by Famicoman
-
-
Moonlit is my homekitten
-
Oh, woops.
-
Anything flash in not par
-
wtf is readyboost? people need to explain their polls.
-
Well... Fuck Tekzilla
-
This image is older than dirt
-
-
-
We are anonymous, we are legion!
-
I've been whipping up these programs for years. Really come in handy.
-
-
keepvid.com
-
Topics merged. Please do not double post again.
-
I agree, this is pretty interesting
-
Well, you compile it with a C++ compiler. I used Visual C++ 6 as I see it being the most simple. I'll throw the exe on the web and allow downloads.
-
Wrote this minesweeper console game in C++ class when I was bored earlier this year. You input your spaces using computer style coordinates (Top left is 0,0 bottem right is 9,9 etc). You can't label where you think there are mines though, which adds a layer of difficulty, and placement of the the 10 mines is random on each launch. Just thought I'd share.
#include<iostream.h> #include<stdlib.h> #include<time.h> char Back[10][10]= { ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ' }; char Front[10][10]= { ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ' }; class Minesweeper { private: int x; int y; int nonmines; public: Minesweeper(); void Intro(); void Placemines(); void Countem(); void Move(); void Showboard_Front(); void Outro(); }; Minesweeper::Minesweeper() { nonmines=0; } void Minesweeper::Intro() { cout<<" ________________________________________________________ "<<endl; cout<<"| Welcome to Minesweeper |"<<endl; cout<<"|--------------------------------------------------------|"<<endl; cout<<"| * Type coordinates when prompted |"<<endl; cout<<"| * Coordinates go from top to bottem |"<<endl; cout<<"| * If you hit a mine, you die |"<<endl; cout<<"| * Do not uncover coordinates you think are mines |"<<endl; cout<<"| |"<<endl; cout<<"| |"<<endl; cout<<"| |"<<endl; cout<<"| Good luck |"<<endl; cout<<"|________________________________________________________|"<<endl; cout<<endl; system("pause"); system("cls"); } void Minesweeper::Placemines() { for(int mines=0;mines<10;mines++) { int x=rand()%9; int y=rand()%9; if (Back[x][y]=='*') { mines--; } else { Back[x][y]='*'; } } } void Minesweeper::Countem() { for (int a=0;a<10;a++) { for (int b=0;b<10;b++) { if(Back[a][b]!='*') { int temp=0; if (a==0 && b==0) { if (Back[a+1][b]=='*') temp++; if (Back[a+1][b+1]=='*') temp++; if (Back[a][b+1]=='*') temp++; } else if (a==0 && b==9) { if (Back[a][b-1]=='*') temp++; if (Back[a+1][b-1]=='*') temp++; if (Back[a+1][b]=='*') temp++; } else if (a==9 && b==9) { if (Back[a-1][b]=='*') temp++; if (Back[a-1][b-1]=='*') temp++; if (Back[a][b-1]=='*') temp++; } else if (a==9 && b==0) { if (Back[a-1][b]=='*') temp++; if (Back[a-1][b+1]=='*') temp++; if (Back[a][b+1]=='*') temp++; } else if(a==0) { if (Back[a][b-1]=='*') temp++; if (Back[a][b+1]=='*') temp++; if (Back[a+1][b-1]=='*') temp++; if (Back[a+1][b+1]=='*') temp++; if (Back[a+1][b]=='*') temp++; } else if(a==9) { if (Back[a][b-1]=='*') temp++; if (Back[a][b+1]=='*') temp++; if (Back[a-1][b-1]=='*') temp++; if (Back[a-1][b+1]=='*') temp++; if (Back[a-1][b]=='*') temp++; } else if(b==0) { if (Back[a-1][b]=='*') temp++; if (Back[a+1][b]=='*') temp++; if (Back[a-1][b+1]=='*') temp++; if (Back[a+1][b+1]=='*') temp++; if (Back[a][b+1]=='*') temp++; } else if(b==9) { if (Back[a-1][b]=='*') temp++; if (Back[a+1][b]=='*') temp++; if (Back[a-1][b-1]=='*') temp++; if (Back[a+1][b-1]=='*') temp++; if (Back[a][b-1]=='*') temp++; } else { if (Back[a-1][b]=='*') temp++; if (Back[a][b-1]=='*') temp++; if (Back[a-1][b-1]=='*') temp++; if (Back[a+1][b+1]=='*') temp++; if (Back[a-1][b+1]=='*') temp++; if (Back[a+1][b-1]=='*') temp++; if (Back[a+1][b]=='*') temp++; if (Back[a][b+1]=='*') temp++; } temp=temp+48; Back[a][b]=temp; } } } } void Minesweeper::Move() { Showboard_Front(); cout<<"Please enter a row number (0-9)"; cin>>x; if (x>9 || x<0) { cout<<"Please enter a number between 1 and 10"<<endl; system("pause"); system("cls"); Move(); } cout<<"Please enter a columm number (0-9)"; cin>>y; if (y>9 || y<0) { cout<<"Please enter a number between 1 and 10"<<endl; system("pause"); system("cls"); Move(); } if (Front[x][y]==Back[x][y]) { system("cls"); Move(); } else { Front[x][y]=Back[x][y]; nonmines++; system("cls"); } if (Back[x][y]=='*' || nonmines>=90) { Outro(); } else Move(); } void Minesweeper::Showboard_Front() { for (int a=0;a<10;a++) { for (int b=0;b<10;b++) { cout<<Front[a][b]<<" "; } cout<<endl; } } void Minesweeper::Outro() { for (int a=0;a<10;a++) { for (int b=0;b<10;b++) { cout<<Back[a][b]<<" "; } cout<<endl; } cout<<"Thank you for playing minesweeper"<<endl; if (nonmines==90) { cout<<"You have beat the game"<<endl; } else { cout<<"You have hit a mine and died"<<endl; } cout<<endl<<"Thanks for playing"<<endl; } int main() { srand(time(0)); Minesweeper thisgame; thisgame.Intro(); thisgame.Placemines(); thisgame.Countem(); thisgame.Move(); return 0; }
-
does it have sql
-
http://slexy.org/view/s2wGRIunKV
Not updated since August, updating now
Archive.org has a lot of videos as well. You can find things like the BBS documentary on there. Their download speeds are a bit slow, but they have so much traffic on their site, I am surprised they can keep it running.http://www.archive.org/details/computersandtechvideos
http://www.archive.org/details/nc101_hackers <--OLd school.
Not IPTV
-
I think he means replace the "Windows Is Starting" image with a vid
if not, make a batchfile with like "mplayer vid.avi" and throw it in the startup folder
-
-
going to your local game store and dropping $15 doesn't sound so bad anymore, eh
-
not only that, but I was thinking umm... would I need a hard drive in my PS2?
yeah, for the custom drivers on linux
-
satas are generally faster than ide. If you are worried about the data, raid works nicely. The common rule of thumb was to not buy maxtor because of some of the horror stories, but they have since been purchased by segate so who knows any more.
-
you could whip something up that has an "if filename=="game.exe" then del"
Hak5 + Hackers movie = Trust Your Technolust?
in Hak5
Posted
Since it feels like we are going there, everyone check the hacker movie project at BinRev.