A Card Game in c++

By Anand T S A decent card game with 2 players and cpu. Two human players can play with the cpu in this decent card game in C++. #include<iostream.h> #include<dos.h> #include<conio.h> #include<dos.h> #include<graphics.h> #include<stdlib.h> #include<stdio.h> #include<string.h> void*image1; void*image; float a[51],bp[40],cp[40],dp[40]; int key,car=5,var,next,esc,taken,chum,remark,bli=3,k,number,q,marksum,mon,kal= 0,jai[3],sub,symb,dont,chance=2,repe=0,repeat=0; int shuf,player=1,guess,remain=0,count=0,mark[3]; float play[3],greatest,great=232,small,remai,in1[3],in2[3],in3[3]; char wini[4][35]={” You have done it man. Well […]

Continue reading


Arcanoid with mouse in c++

A cute game by gaurav sarin, imran , priyank , nitin Code : /********************** |||||||| BRICK GAME ||||||||| *************************/ #include <iostream.h> #include <conio.h> #include <ctype.h> //defining toupper # include <process.h> //exit(0) # include <dos.h> # include <stdlib.h> # include <graphics.h> # include <stdio.h> # define NULL 0 # define YES 1 # define NO 0 […]

Continue reading


Snakeman in c++

//80*48 #include<fstream.h> #include<stdlib.h> #include<process.h> #include<stdio.h> #include<time.h> #include<dos.h> #include<string.h> #include<graphics.h> #include<bios.h> #include<conio.h> #include<iomanip.h> unsigned key; int len=0,count=0,foodtype=0,d,m,food_flag=0,j=0,i=0,display_count=10, hscore_pos=0,x_index=0,y_index=0,mx,my,maze=1,speed=100; long score=0,ti_elap=0,ti_rem=15,tot_ti=15,ti_init; char *main_menu[]={{“1. Play”},{“2. Options”},{“3. Instruction”}, {“4. Hi-Score”},{“5. Exit”}}; char *game_menu[]={{“1. Mazes”},{“2. Level”},{“3. Back to Main menu”}}; char *maze_menu[]={{“1. Open”},{“2. Box”},{“3. Twisted”}, {“4. Return to Main menu”}}; char *level_menu[]={{“1. Beginner”},{“2. Intermediate”},{“3. Expert”}, {“4. Return to Main menu”}}; […]

Continue reading


Hangman Game in c++

A beautiful yet simple mini project game.. //A HANGMAN Game Program Dated: 14 NOV 2005 /* Developed By: Manish Jain 1103143 3rd yr M.M.E.C. Mulana mkj_manishjain@yahoo.co.in +91 9896455735 */ //HEADER FILES #include<fstream.h> #include<bios.h> #include<time.h> #include<dos.h> #include<stdio.h> #include<string.h> #include<stdlib.h> #include<graphics.h> #include<conio.h> #include<mouse.h> #define SMILE 1 #define SAD 0 //VARIABLES AND FUNCTIONS DECLARATION unsigned key; char firstrow[]={‘Q’,’W’,’E’,’R’,’T’,’Y’,’U’,’I’,’O’,’P’}; […]

Continue reading


HIGH/LOW GAME in c++

A simple high log game project by molly arora. This is the game where you guess a number between 1 to 100. The program then asks you some simple queries about your guess and calculates the number you have guessed. /* HIGH/LOW GAME */ #include<iostream.h> #include<conio.h> #include<stdlib.h> /* This program plays a simple game.The computer […]

Continue reading