Add to Favorites    Make Home Page 18221 Online  
 Language Categories  
 Our Services  

Home » C++ Home » Games Home » The Mind Reader Game

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title The Mind Reader Game
Author Muhammad Wasiq Ansari
Author Email muhammadwasiqansari [at] yahoo.com
Description This is the best game that tells you the number you thought.
Category C++ » Games
Hits 377972
Code Select and Copy the Code
// The Mind Reader Game // Made By : Muhammad Wasiq Ansari #include #include #include #include void First_Card(void);void Second_Card(void); void Third_Card(void);void Fourth_Card(void); void Fifth_Card(void);void Sixth_Card(void); void Analyze(void); Check(void); void main(void) { int ans=0,in=0; clrscr(); _setcursortype(_NOCURSOR); First_Card(); in=Check(); if (in==0) ans+=1; Second_Card(); in=Check(); if (in==0) ans+=2; Third_Card(); in=Check(); if (in==0) ans+=4; Fourth_Card(); in=Check(); if (in==0) ans+=8; Fifth_Card(); in=Check(); if (in==0) ans+=16; Sixth_Card(); in=Check(); if (in==0) ans+=32; textcolor(WHITE);textbackground(BLACK); clrscr(); Analyze(); clrscr(); if(ans>60) {gotoxy(20,12);printf("You Entered Incorrect Information.");} else {gotoxy(28,13);printf("Your No Is : "%d"",ans);} gotoxy(20,14);printf("Thanks For Using This Program... "); gotoxy(30,22);printf("Made By : "); gotoxy(37,23);printf("MUHAMMAD WASIQ ANSARI");getch(); } void First_Card(void) { gotoxy(25,6); printf("???????????????????????????????"); gotoxy(25,7); printf("? C O M P U T E R G A M E ?"); gotoxy(25,8); printf("???????????????????????????????"); gotoxy(25,9); printf("? 1 ? 3 ? 5 ? 7 ? 9 ? 11 ?"); gotoxy(25,10); printf("???????????????????????????????"); gotoxy(25,11); printf("? 13 ? 15 ? 17 ? 19 ? 21 ? 23 ?"); gotoxy(25,12); printf("???????????????????????????????"); gotoxy(25,13); printf("? 25 ? 27 ? 29 ? 31 ? 33 ? 35 ?"); gotoxy(25,14); printf("???????????????????????????????"); gotoxy(25,15); printf("? 37 ? 39 ? 41 ? 43 ? 45 ? 47 ?"); gotoxy(25,16); printf("???????????????????????????????"); gotoxy(25,17); printf("? 49 ? 51 ? 53 ? 55 ? 57 ? 59 ?"); gotoxy(25,18); printf("???????????????????????????????"); } void Second_Card(void) { gotoxy(25,6); printf("???????????????????????????????"); gotoxy(25,7); printf("? C O M P U T E R G A M E ?"); gotoxy(25,8); printf("???????????????????????????????"); gotoxy(25,9); printf("? 2 ? 3 ? 6 ? 7 ? 10 ? 11 ?"); gotoxy(25,10); printf("???????????????????????????????"); gotoxy(25,11); printf("? 14 ? 15 ? 18 ? 19 ? 22 ? 23 ?"); gotoxy(25,12); printf("???????????????????????????????"); gotoxy(25,13); printf("? 25 ? 27 ? 30 ? 31 ? 34 ? 35 ?"); gotoxy(25,14); printf("???????????????????????????????"); gotoxy(25,15); printf("? 38 ? 39 ? 42 ? 43 ? 46 ? 47 ?"); gotoxy(25,16); printf("???????????????????????????????"); gotoxy(25,17); printf("? 50 ? 51 ? 54 ? 55 ? 58 ? 59 ?"); gotoxy(25,18); printf("???????????????????????????????"); } void Third_Card(void) { gotoxy(25,6); printf("???????????????????????????????"); gotoxy(25,7); printf("? C O M P U T E R G A M E ?"); gotoxy(25,8); printf("???????????????????????????????"); gotoxy(25,9); printf("? 4 ? 5 ? 6 ? 7 ? 12 ? 13 ?"); gotoxy(25,10); printf("???????????????????????????????"); gotoxy(25,11); printf("? 14 ? 15 ? 20 ? 21 ? 22 ? 23 ?"); gotoxy(25,12); printf("???????????????????????????????"); gotoxy(25,13); printf("? 28 ? 29 ? 30 ? 31 ? 36 ? 37 ?"); gotoxy(25,14); printf("???????????????????????????????"); gotoxy(25,15); printf("? 38 ? 39 ? 44 ? 45 ? 46 ? 47 ?"); gotoxy(25,16); printf("???????????????????????????????"); gotoxy(25,17); printf("? 52 ? 53 ? 54 ? 55 ? 60 ? 60 ?"); gotoxy(25,18); printf("???????????????????????????????"); } void Fourth_Card(void) { gotoxy(25,6); printf("???????????????????????????????"); gotoxy(25,7); printf("? C O M P U T E R G A M E ?"); gotoxy(25,8); printf("???????????????????????????????"); gotoxy(25,9); printf("? 8 ? 9 ? 10 ? 11 ? 12 ? 13 ?"); gotoxy(25,10); printf("???????????????????????????????"); gotoxy(25,11); printf("? 14 ? 15 ? 24 ? 25 ? 26 ? 27 ?"); gotoxy(25,12); printf("???????????????????????????????"); gotoxy(25,13); printf("? 28 ? 29 ? 30 ? 31 ? 40 ? 41 ?"); gotoxy(25,14); printf("???????????????????????????????"); gotoxy(25,15); printf("? 42 ? 43 ? 44 ? 45 ? 46 ? 47 ?"); gotoxy(25,16); printf("???????????????????????????????"); gotoxy(25,17); printf("? 56 ? 57 ? 58 ? 59 ? 60 ? 60 ?"); gotoxy(25,18); printf("???????????????????????????????"); } void Fifth_Card(void) { gotoxy(25,6); printf("???????????????????????????????"); gotoxy(25,7); printf("? C O M P U T E R G A M E ?"); gotoxy(25,8); printf("???????????????????????????????"); gotoxy(25,9); printf("? 16 ? 17 ? 18 ? 19 ? 20 ? 21 ?"); gotoxy(25,10); printf("???????????????????????????????"); gotoxy(25,11); printf("? 22 ? 23 ? 24 ? 25 ? 26 ? 27 ?"); gotoxy(25,12); printf("???????????????????????????????"); gotoxy(25,13); printf("? 28 ? 29 ? 30 ? 31 ? 48 ? 49 ?"); gotoxy(25,14); printf("???????????????????????????????"); gotoxy(25,15); printf("? 50 ? 51 ? 52 ? 53 ? 54 ? 55 ?"); gotoxy(25,16); printf("???????????????????????????????"); gotoxy(25,17); printf("? 56 ? 57 ? 58 ? 59 ? 60 ? 60 ?"); gotoxy(25,18); printf("???????????????????????????????"); } void Sixth_Card(void) { gotoxy(25,6); printf("??????????????????????????????? 52 ? 53 ? 54 ? 55 ?"); gotoxy(25,16); printf("???????????????????????????????"); gotoxy(25,17); printf("? 56 ? 57 ? 58 ? 59 ? 60 ? 60 ?"); gotoxy(25,18); printf("???????????????????????????????"); } Check(void) { int loop,key,index=0; char *menu[]={" Yes "," No "}; textcolor(WHITE); textbackground(CYAN); while(1) { for (loop=0;loop<2;loop++) { if (loop==index) textbackground(YELLOW); else textbackground(CYAN); gotoxy(33+loop*10,20);cprintf("%s",menu[loop]); } key=getch(); switch(key) { case 75: index--;if (index<0) index=1;break; case 77: index++;if (index>1) index=0;break; case 13: return index; } } } void Analyze(void) { gotoxy(30,10); printf("Analyzing Result..."); gotoxy(25,11); printf("???????????????????????????????"); gotoxy(25,12); printf("? ??????????????????????????? ?"); gotoxy(25,13); printf("???????????????????????????????"); for(int a=27;a<=53;a++) { delay(100); gotoxy(a,12);printf("%c",219); } }

Related Source Codes

Script Name Author
Moving ball screen saver karlmarx
The Classic Game of Snake & Ladder Lakshmi Narayana .A
Railway seat reservation question which comes in sapient VyomWorld
To calculate percentile Ravi Mathur
Send to folder ANIMESH SAHU
Analog clock and calendar Nazia & Rida
HIGH/LOW GAME MOLLY ARORA
Data structure (stack Implimentation) Swapnil B Adsure
Memory Game AnirudhSanyal
Easy Calc Anirudh Sanyal
GK Quiz Anirudh Sanyal
Hangman Game Manish Jain
Snakeman Manish Jain
Full month Calendar Nigi
Cursor shapes nigi

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=704


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review