Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 02-29-08   #1 (permalink)
Overclocker in Training
 
.dp-BarackObama's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: Indiana
Posts: 157

Rep: 5 .dp-BarackObama Unknown
Unique Rep: 5
Hardware Reviews: 2
Trader Rating: 0
Default Show your games to OCN!

If anybody has programmed a little interactive game that they'd like to show go ahead and post it here. You can include a source code too. An executable would be nice as well.

I'm curious to see what other people have made. Lets see if this thread takes off :P

Here is a simple guessing game i made

Code:
//guessing game

#include <iostream.h>
#include <iomanip.h>
#include <stdlib.h>
#include <windows.h>
#include <winuser.h>

void instruct(void); //instructions function
void game(void);  	 //game
void close(void); //close window


int
main(void)
{

	game();		

return(0);
}


void
instruct()
{
		cout << "Welcome to the GUESSING GAME!\n\n";
}

void
game()
{
		int random, //locals
			guess;


		char play;
	random = 1 + rand() % 1000;

	guess = 0;
	while(guess != random){	

	//initial output
cout << "\n\nI have a number between 1 and 1000\n";
cout << "Can you guess my number nub?\n";
cout << "Please type your first guess: ";
			cin >> guess;
			cout << endl;

	if(guess == random){
		cout << "Excellent! You guessed the right number hacker!\n";
		cout << "Would you like to play again? (y or n)\n";
			cin >> play;
			
					if(play == 'y')
							game();
					else if(play == 'n')
						close();
		}
	else if(guess > random){
		
		cout << "You guessed to high! Try Again\n";
		
		}
	else if(guess < random){
		
		cout << "You guessed to low! Try Again\n\n";
			
		}
		
		}
		
}


void 
close() 
{
	HWND windowhandle;
	SetConsoleTitle("Program");
	windowhandle=FindWindow(NULL,"Program");
	SendMessage (windowhandle, WM_CLOSE, 0, 0);	
}
__________________
ß₤ứə Çřёώ
[b]3DMARK06: 9623/B]
XBOX360 GAMERTAG: Spankey4861

System: HELENKELLER
CPU
Q6600 @ 2.4
Motherboard
eVGA 780I
Memory
4 GB OCZ SLI RDY
Graphics Card
EVGA 8800GTS
Hard Drive
400GB WD/Seagate Internal / 500 WD External
Sound Card
SB X-Fi Audio [AC00]
Power Supply
Ultra X2 750watt
Case
Ultra Aluminus Mid-Tower
CPU cooling
AC Freezer 7
GPU cooling
80mm
OS
Vista X86
.dp-BarackObama is offline   Reply With Quote
Old 02-29-08   #2 (permalink)
Windows Wrangler
 
mrtn400's Avatar
 
intel ati

Join Date: Aug 2007
Location: Carmichael, CA
Posts: 3,073
Blog Entries: 2

Rep: 203 mrtn400 is acknowledged by manymrtn400 is acknowledged by manymrtn400 is acknowledged by many
Unique Rep: 173
Hardware Reviews: 1
Trader Rating: 0
Default

I like your game. Gonna compile it in a sec.

I'm not much of a game coder. I'm more of a "they don't make a kind of app I need so I'll make it myself" coder.
__________________
Je parle un peu le français, mais je préfère parler l'anglais. Parlez-vous le français aussi?

For you English speakers:

">" - greater than; "<" - less than
"there" - Hey, look over there.
"their" - I love their Mustang.
"they're" - They're so lucky!

System: Cataclysm (Main Rig)
CPU
Q6600 G0 1.325v @ 3296Mhz (412x8) 1.41v
Motherboard
Abit IP35 Pro
Memory
4x 1GB Patriot DDR2-800 @ 812Mhz 4-4-4-12 2.15v
Graphics Card
Sapphire 4850 @ 725Mhz/1050Mhz w/ Catalyst 8.7
Hard Drive
2x WD1600AAJS RAID0
Sound Card
Onboard 7.1
Power Supply
Antec True Power Trio 650w
Case
Antec 900
CPU cooling
Tuniq Tower 120 w/ Scythe SY1225SL12SH 120mm
GPU cooling
Thermalright T-RAD² w/ 2x Scythe DFS922512M-PWM
OS
Windows Vista Ultimate x64 SP1
Monitor
1x Acer 19" @ 1400x900, 1x Sceptre 19" @ 1280x1024
mrtn400 is offline mrtn400's Gallery   Reply With Quote
Old 02-29-08   #3 (permalink)
Overclocker in Training
 
.dp-BarackObama's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: Indiana
Posts: 157

Rep: 5 .dp-BarackObama Unknown
Unique Rep: 5
Hardware Reviews: 2
Trader Rating: 0
Default

thanks man. im more of a whatever programmer.
__________________
ß₤ứə Çřёώ
[b]3DMARK06: 9623/B]
XBOX360 GAMERTAG: Spankey4861

System: HELENKELLER
CPU
Q6600 @ 2.4
Motherboard
eVGA 780I
Memory
4 GB OCZ SLI RDY
Graphics Card
EVGA 8800GTS
Hard Drive
400GB WD/Seagate Internal / 500 WD External
Sound Card
SB X-Fi Audio [AC00]
Power Supply
Ultra X2 750watt
Case
Ultra Aluminus Mid-Tower
CPU cooling
AC Freezer 7
GPU cooling
80mm
OS
Vista X86
.dp-BarackObama is offline   Reply With Quote
Old 02-29-08   #4 (permalink)
The Project Keeper
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Bel Air
Posts: 9,550
Blog Entries: 3

Rep: 278 Licht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 184
Folding Team Rank: 880
Trader Rating: 0
Default

GM6 doesn't work on Vista and GM7 i have no key for. So naturally i got rid of all my source codes. I did have quite a few games though pretty decent too.

System: Uzicht #3
CPU
Athlon X2 5200+ Windsor
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
Saphire HD 3870
Hard Drive
2x WD 160GB 7,200RPM RAID0
Sound Card
X-Fi Extreme Gamer Fatality Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
AMD Stock Cooling
GPU cooling
Stock Saphire 3870 Cooling
OS
Windows Vista Home Premium x64 SP1
Monitor
Samsung SyncMaster 19"Wide
Licht is offline I fold for Overclock.net Overclocked Account Licht's Gallery   Reply With Quote
Old 02-29-08   #5 (permalink)
Overclocker in Training
 
.dp-BarackObama's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: Indiana
Posts: 157

Rep: 5 .dp-BarackObama Unknown
Unique Rep: 5
Hardware Reviews: 2
Trader Rating: 0
Default

have an executable for them? i'd love to see them.
__________________
ß₤ứə Çřёώ
[b]3DMARK06: 9623/B]
XBOX360 GAMERTAG: Spankey4861

System: HELENKELLER
CPU
Q6600 @ 2.4
Motherboard
eVGA 780I
Memory
4 GB OCZ SLI RDY
Graphics Card
EVGA 8800GTS
Hard Drive
400GB WD/Seagate Internal / 500 WD External
Sound Card
SB X-Fi Audio [AC00]
Power Supply
Ultra X2 750watt
Case
Ultra Aluminus Mid-Tower
CPU cooling
AC Freezer 7
GPU cooling
80mm
OS
Vista X86
.dp-BarackObama is offline   Reply With Quote
Old 02-29-08   #6 (permalink)
Sup'
 
Duckydude's Avatar
 
intel nvidia

Join Date: May 2005
Location: Charlottesville, VA
Posts: 2,846

Rep: 428 Duckydude is a proven memberDuckydude is a proven memberDuckydude is a proven memberDuckydude is a proven memberDuckydude is a proven member
Unique Rep: 294
Trader Rating: 17
Default

One of my friends made a cool game where you get coins with an airplane or something, I'll post it tomorrow.

System: Amazazing Machine
CPU
Q6600 G0 At 3.4Ghz 1.376v (Lapped)
Motherboard
Asus P5K-E Wifi-AP W/ Vdroop Mod
Memory
4 x 1GB PC8500 Ballistix Tracers 1134Mhz 5-5-5-8
Graphics Card
EVGA 8800GTS G92 512MB 756/2000
Hard Drive
2 150GB Raptors + 2 320GB 7200.10s Each In RAID 0
Sound Card
Auzen X-Fi Prelude + Zhaolu DAC D3.0
Power Supply
600W OCZ StealthXStream
Case
Antec Nine Hundred
CPU cooling
TR. Ultra 120 Extreme (Lapped) w/ 2 120mm fans
GPU cooling
Stock EVGA Cooler
OS
Windows Vista Ultimate x64 SP1 (Vlited)
Monitor
Dell 2407WFP Rev. A02
Duckydude is offline Overclocked Account   Reply With Quote
Old 02-29-08   #7 (permalink)
The Project Keeper
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Bel Air
Posts: 9,550
Blog Entries: 3

Rep: 278 Licht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 184
Folding Team Rank: 880
Trader Rating: 0
Default

Quote:
Originally Posted by .dp-BarackObama View Post
have an executable for them? i'd love to see them.
I doubt my 3 or 4 year old file hosting account's files are still there. And my laptop's HDD crashed, hard. Had to 0 fill as well as double reformat before i could finally install XP. (I didn't have any desktop at the time and no big games worked on it which propelled me to make my own since it wouldn't need any real power, in the end it lead to my hobby of programming which of course now i am far more proficient in higher languages.)

System: Uzicht #3
CPU
Athlon X2 5200+ Windsor
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
Saphire HD 3870
Hard Drive
2x WD 160GB 7,200RPM RAID0
Sound Card
X-Fi Extreme Gamer Fatality Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
AMD Stock Cooling
GPU cooling
Stock Saphire 3870 Cooling
OS
Windows Vista Home Premium x64 SP1
Monitor
Samsung SyncMaster 19"Wide
Licht is offline I fold for Overclock.net Overclocked Account Licht's Gallery   Reply With Quote
Old 02-29-08   #8 (permalink)
Overclocker in Training
 
.dp-BarackObama's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: Indiana
Posts: 157

Rep: 5 .dp-BarackObama Unknown
Unique Rep: 5
Hardware Reviews: 2
Trader Rating: 0
Default

oh well, that sucks dude. can't wait for this airplane game though. im curious
__________________
ß₤ứə Çřёώ
[b]3DMARK06: 9623/B]
XBOX360 GAMERTAG: Spankey4861

System: HELENKELLER
CPU
Q6600 @ 2.4
Motherboard
eVGA 780I
Memory
4 GB OCZ SLI RDY
Graphics Card
EVGA 8800GTS
Hard Drive
400GB WD/Seagate Internal / 500 WD External
Sound Card
SB X-Fi Audio [AC00]
Power Supply
Ultra X2 750watt
Case
Ultra Aluminus Mid-Tower
CPU cooling
AC Freezer 7
GPU cooling
80mm
OS
Vista X86
.dp-BarackObama is offline   Reply With Quote
Old 02-29-08   #9 (permalink)
PC Gamer
 
RedFox911's Avatar
 
intel nvidia

Join Date: Nov 2007
Location: San deigo, CA
Posts: 1,194

Rep: 61 RedFox911 is acknowledged by some
Unique Rep: 52
Trader Rating: 0
Default

Man i need too learn that stuff.

System: My pc
CPU
Core 2 quad q6600
Motherboard
xfx 780i (finally working)
Memory
4 gb ocz pc6400 @866mhz @4-5-5-15
Graphics Card
Pny GTX 260
Hard Drive
2x 150gb Raptor hdd 10,000rpm
Sound Card
none
Power Supply
Thermaltake thoughpower 750watt modular
Case
cooler master cm stacker 832 Nvidia Edition!
CPU cooling
Asus silent night
GPU cooling
DuOrb
OS
Windows vista home premium
Monitor
22 inch Samsung monitor
RedFox911 is offline   Reply With Quote
Old 02-29-08   #10 (permalink)
The Project Keeper
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Bel Air
Posts: 9,550
Blog Entries: 3

Rep: 278 Licht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 184
Folding Team Rank: 880
Trader Rating: 0
Default

Quote:
Originally Posted by .dp-BarackObama View Post
oh well, that sucks dude. can't wait for this airplane game though. im curious
When XNA becomes compatible with Visual Studio 2008 (currently only 2005 compatible) and i figure out how to use it's estranged system i might go back into working on games again.

System: Uzicht #3
CPU
Athlon X2 5200+ Windsor
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
Saphire HD 3870
Hard Drive
2x WD 160GB 7,200RPM RAID0
Sound Card
X-Fi Extreme Gamer Fatality Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
AMD Stock Cooling
GPU cooling
Stock Saphire 3870 Cooling
OS
Windows Vista Home Premium x64 SP1
Monitor
Samsung SyncMaster 19"Wide
Licht is offline I fold for Overclock.net Overclocked Account Licht's Gallery   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 07:57 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.27100 seconds with 8 queries