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

Home » C Home » Games and Graphics Home » The Mind Reader

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

Search Projects & Source Codes:

Title The Mind Reader
Author Srinivasarao Pushadapu
Author Email psr44470 [at] yahoo.co.in
Description The Mind Rader is developed in C language, to run this program
you no need to bother about Graphics since no Graphics were used. Help is
provided to play the game. It takes no parameters. You can play the game
by following these steps
1.Take any two digit number,
2.Add the two digits of the number,
3.Subtract the sum from the riginal
number,
4.See the symbol corresponding to the
number and press any key ,
5.The mind reader displays the symbol.

If you heve any doubts u can mail me at
psr44470@yahoo.co.in
or
psrinivas_mail@yahoo.com
Category C » Games and Graphics
Hits 375429
Code Select and Copy the Code
:/* Author : Pushadapu Srinivasarao MCA, Pydah Collage of PG Courses, Andhra University, Visakhapatnam, Andhra Pradesh, India. Play like this : Take any two digit number, add the two digits of the number, subtract the sum from the original number, see the symbol corresponding to the number u got and press any key , the mind reader displays the symbol. *****Enjoy ***** */ #include<stdio.h> #include<conio.h> #include <stdlib.h> #include <time.h> void fun(int x,int y,int n,int a) { textcolor(13); gotoxy(x,y); cprintf("%d->%c",n,a); } void box(int c,int r,int s,int y) { int i ; textcolor(3); gotoxy(s,y); cprintf("%c",218); for(i=s+1;i<c+1;i++) { gotoxy(i,y); cprintf("%c",196); } for(i=s+1;i<c+1;i++) { gotoxy(i,r); cprintf("%c",196); } gotoxy(c,y); cprintf("%c",191); for(i=y+1;i<r;i++) { gotoxy(s,i); cprintf("%c",179); } for(i=y+1;i<r;i++) { gotoxy(c,i); cprintf("%c",179); } gotoxy(s,i); cprintf("%c",192); gotoxy(c,i); cprintf("%c",217); } void help() { box(78,24,2,1); box(70,9,52,5); box(77,23,30,15); gotoxy(50,15); printf("Play Like This"); gotoxy(31,16); printf("1.Choose a two digit number and add the digits"); gotoxy(31,17); printf("2.Subtract the sum from original number"); gotoxy(31,18); printf("3.See the symbol opposit to the number you got"); gotoxy(31,19); printf("4.Press any key The MIND READER will "); gotoxy(31,20); printf(" display the symbol you got"); gotoxy(31,21); printf("5.For Best Results Please don't Turn your "); gotoxy(31,22); printf(" Eyes from the screen"); textcolor(9); gotoxy(31,23); cprintf("Mail me at psr44470@yahoo.co.in"); } void ran() { time_t t; int r,i; int a[]={1,2,3,4,5,6,14,15,16,17,18,19,20,21,22,23,24,25,27,29, 30,33,34,35,36,37,38,40,41,42,43,60,62,61,63,64,123,124, 125,126,127,128,154,155,156,171,172,174,175,229,234,235, 236,237,238,239, 240,242,243,244,245,246,247,251,254}; srand((unsigned) time(&t)); r=rand() % 65; help(); textcolor(10); gotoxy(50,2); cprintf("MAIND READER"); gotoxy(55,3); cprintf("by SRINIVASA"); for(i=1;i<23;i++) { textcolor(13); gotoxy(3,i+1); cprintf("%d->%c ",i,a[rand()%65]); gotoxy(10,i+1); cprintf("%d->%c ",i+22,a[rand()%65]); gotoxy(17,i+1); cprintf("%d->%c ",i+44,a[rand()%65]); gotoxy(24,i+1); cprintf("%d->%c ",i+66,a[rand()%65]); } fun(3,10,9,r); fun(3,19,18,r); fun(10,6,27,r); fun(10,15,36,r); fun(17,2,45,r); fun(17,11,54,r); fun(17,20,63,r); fun(24,7,72,r); fun(24,16,81,r); for(i=1;i<12;i++) { gotoxy(31,i+1); cprintf("%d->%c ",i+88,a[rand()%65]); } gotoxy(55,7); textcolor(15+BLINK); cprintf("Press Any Key"); getch(); gotoxy(55,7); textcolor(BLACK); cprintf("Press Any Key"); gotoxy(61,7); textcolor(15+BLINK); cprintf("%c",r); } void main() { int i; clrscr(); ran(); getch(); }

Related Source Codes

Script Name Author
The Game Opposite as seen on Nokia 2300 Mobile Manikanta
RECURSIVE BALANCED QUICK SORT ashish
Radix Sort ashish
Change your mouse pointer Ashim
The blinking star Shashank
Data Validation Crylittlebaby
To search a file by giving file type like mp3 or mpeg or doc Prashanth SR
Menus Demonstration B.Chidhambaram
Employee Database Project Using C. Reenku Raman Nayak
Creating a Lexical Analyzer in c fahad bader al-buhairi ¦Õ¤ ?¤Ð Ãß??ÝÐÝ
Calendar Program Omkar & Devendra
Stop double Process for start in C Cedrik Jurak
Stop double Process for start in C Cedrik Jurak
Time Scheduler Atiq Anwar
A timepass game between atmost two players Rahul Roy

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=580


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