1) ANACONDA : The game of an intelligent snake
In this game there is a snake named as ‘Anaconda’ that is very hungry and can eat endlessly. The snake is represented by a sequence of small squares or circles and arrow keys control the movement of the snake in any direction. Whenever snake eats some food its body gets enlarged by two bits by its head. If the head of snake hits its body or any of the circular hurdles placed randomly on the screen in its path then it dies ending the game as a consequence. The game starts with some initial graphics and user will have to select some options then the game is played on the output screen.
We have introduced many hurdles in the path of snake. Food for snake appears for some time on a particular place after that it appears at some other place, the snake has to eat this within this period of time and get points for it. As the time proceed snake keeps on eating and its size keeps on increasing. As the size increases it becomes more and more difficult to play. User can select level at which he wants to play, with increase in level, speed with which snake will move will increase and user will get more points for every food snake eats. The goal to play game is to earn more and more points as much as user can. While playing the game user can see his present score on the screen.
User can also select mazes; different mazes have different type of hurdles. By default game will run without any maze and at the slowest of the speeds available unless user select some level. In no maze condition snake can traverse out of the screen and will reappear from other side of the screen. The game is a simple simulation of the snake game available in Nokia mobile handsets.
About
the technical specifications of the software:
·
This
software runs on windows95/98/NT/XP platform & at least 64 Kb of System
memory with a monitor supporting a resolution of 640X480 using 16 colors.
·
This game
has been designed in C Programming language using graphics.
· It has approximately 1000 LOC.
This game in the form of a technical paper was presented by Moksh Walia (IT) & myself in CONFLUENCE 2K4, INFOFIESTA 2K4 , the techno fest organised at NATIONAL INSTITUTE OF TECHNOLOGY, ROURKELA , where we won the 2nd prize.
Download : 1) The Game.
2) Source Code.
3) The paper describing the game.
2) MATHS : The invisible hand behind Music.
As far as mathematical simulation is concerned we can develop a set of rules to define a fact that MUSIC CAN ACT AS a DNA OF MATHEMATICAL FUNCTIONS, which can be implemented using a high level structured computer language such as “C”.
While establishing an amalgamation of math and music and
contemplating on their relation from music to math point of view, it won’t be
a redundancy to try to confer upon mathematical function an attribute of music.
Intuitively, if such notion can be made to exist, then every such function
should have a character signature of music. But to define such an abstract
relation a fixed set of rules is quite necessary. Of course a platform for
defining such relations could be a computer language where it can be implemented
in an exhaustive way.
A
“C” SIMULATION OF MUSIC IN MATHS.
Now any mathematical function has a typical range of values that can be easily expressed within a limit by multiplying with typical whole numbers or fractions. For example if a typical scale of three octaves is considered, each of 12 notes, then a range of 36 notes are obtained. Any type of music is based on these three octaves. Thus associating SA with 1,RE with 2, RA with 3 and so on, a musical scale can be defined. Basically if three functions are considered: -
It seems that their structure resembled musical scores, so
as an experiment let’s see what they sound like when the following rules are
defined to convert the values of the function to a range of 1 to 36.
Considering the polynomial function first:
Its positive
values may range from 1 to 32767(the limit for integer value in ‘C’).
By dividing it into three ranges: i.e 1 to 36, 37 to 1296, &1297 to
32767.Any value of the function in the first region can be directly processed to
get the corresponding note. A value in the second range can be divided by 36(a
whole number) to get the value again in the first range. For the third range the
values can be divided by 910(another whole number) to get the values within the
first range and the subsequent sound output. A question arises as to why
the negative values of the function are to be neglected when they can also add
to the music DNA of the polynomial. Well they could be converted to a
positive one by multiplying with –1 and given the same treatment as to their
positive counterparts.
A logarithmic function can have the highest value of
10.39.(log (32767) ) which when multiplied with 3151 gives the
range of values from 1 to 32767, which can then be treated the same way as that
of polynomial.
A totally different treatment lies in store for the
trigonometric functions:
Since the
trigonometric functions are periodic so let’s define a base when they obtain a
zero value. Let this base be 18. Any negative values will be treated in the
range 1 to 18 and positive values within 18 to 36.
SINE wave:
Within the range 0 to 360 degrees, a sine function
gradually rises to a value 1.00 from 0.0 and falls from 1. 00 to 0.00 in the
range 90 to 180degrees.so the rise may be simulated as a rise from 18 to 36 then
fall from 36 to 18 then go down from 18 to 1 and then again rise from 1 to
18.hence the cycle gets completed. Based on the same lines we can define the
following tables for the remaining tables: -
DEGREE RANGE
|
SIMULATION RANGE |
|
0 to 90 |
36 to 18 |
|
90 to 180 |
18 to 1 |
|
180 to 270 |
1 to 18 |
|
270 to 360 |
18 to 36 |
3. TAN TABLE: -
DEGREE RANGE |
SIMULATION RANGE
|
|
0 to 90 |
18 to 36 |
|
90 to 180 |
1 to 18 |
|
180 to 270 |
18 to 36 |
|
270 to 360 |
1 to 18 |
In a very similar way we can also simulate the remaining
three ratios, so that they represent a particular note pattern.
The method of running the .exe file :
1) When the program asks : Which Mathematical function do you want to hear? You may type either " trigonometric" or "polynomial" or "log". Press enter.
2) If you type " trigonometric" it will ask : Which trigonometric function you want to hear : type sinx or cosx or tanx ....or cotx. Press Enter.
3) If you type "polynomial" it will ask :"Enter the degree of the polynomial",
if you want to hear a quadratic function enter the degree as 2. A typical example : Suppose you want to hear x^4+2*x^2 +7, enter in the fashion
7 press enter (pe) 2 (pe) 0 (pe) 1 (pe).
2) Source Code.
3) Shooting game
This game is a very basic simulation of the game paratrooper and obviously has some limitations. There is a gun which shoots only one bullet at a time and the user has to wait until the bullet just shot reaches the top of the screen. The user can shoot using the " UP " arrow key, and move the gun sideways using" LEFT" & " RIGHT " arrow keys. The flying saucers keep coming at the top of the screen at great speed. The user scores 50 points for each hit and can press the ESC key to terminate the game.
Download : 1) The game.
2) Source Code.
4) Pingpong game
This game also simulates the bricks game except that you get points for touching the platform and not breaking the bricks as it has no bricks at all !!. Initially you have to enter the speed at which you want the ball to move. You can use the arrow keys ( RIGHT & LEFT ) to move the platform below.
Download : 1) The game.
2) Source Code.
5) SLATE game
In this game you will be given a board having numbers 1 to 15 arranged in a random manner. What you would need to do is arrange the numbers by moving the one vacant position or space using the arrow keys.
2) Source Code.
6) Explore Bhopal : An Information Kyosk on Bhopal
This software was made as a part of our Management Information Systems project.
OBJECTIVES:-
·
Provide information about Bhopal.
·
Give assistance to user to find the
information of a particular entity.
·
To make map system
INTRODUCTION:-
The sole aim of
this software is to give the user all information about Bhopal. Database of this
software consists of information about markets, hotels and restaurants,
educational Institutes and coaching institutes,
hospitals and nursing homes, entertainment centers, tourist places and
industries in Bhopal. This user friendly software will answer most queries about
Bhopal. we have made different modules of data so that user can easily navigate
through the software.
FEATURE
HIGHLIGHTS:-
n
User Friendly Front-End
n
Dynamic Looks
n
Large Data Storage Capacity
n
Easy to Administer and Configure
the Software
n
Excellent Security Features
n
Efficient links with internet
HARDWARE
REQUIREMENTS:-
n
IBM
/ IBM Compatible System (486,Pentium-I,P-II)
n
32 MB RAM (Memory)
n
Color Monitor (with 800 x 600
Pixels Resolution)
n
Mouse
n
IBM / IBM Compatible Keyboard
n
CD-ROM Drive
n
Color Printer
SOFTWARE
REQUIREMENTS:-
n
Windows 95/98/2000/XP (Operating
System)
n
Microsoft Office
n
Microsoft Visual Basic
(Version-6.0)
n
Oracle database
SOFTWARE
MODULES:-
Ø
MARKET
Ø
ENTERTAINMENT
Ø
HOSPITALS
Ø
EDUCATION
Ø
BANKS & FINANCIAL INSTITUTIONS
Ø
TRAVEL & TOURISM
Ø
RESERVATION
&
MAPS
Ø
INDUSTRIES
Ø
HOTELS & RESTAURANTS
MARKET:
It is supposed to provide
categorical listing of various market places and the items for supporting daily
chores. Markets are classified on the following lines:
Ø
Computer peripherals and systems/
hardware/software vendors and dealers.
Ø
Dress materials.
Ø
Automobile showrooms
Ø
Departmental stores including
co-operatives
Ø
Medicine stores
Ø
Local outlets: company
Ø
Beauty parlours
ENTERTAINMENT:
Ø
Theatres
Ø
Cinema
Halls
Ø
Amusement
parks
Ø
Sports
and recreation
Ø Discotheques
Ø Clubs
HOSPITALS:
Ø
Public/ Private.
Ø
Nursing Homes.
Ø
Maternity Homes
EDUCATION:
Ø
Colleges
(Engineering/Commerce/Medical/Arts).
Ø
Schools.
Ø
Coaching centres.
BANKS
AND FINANCIAL INSTITUTIONS:
Ø
Co-operative banks.
Ø
Industrial development banks.
Ø
Agricultural banks
Ø
Financial institutions.
TRAVEL
& TOURISM:
Ø Tourist
spots.
Ø
Travel
agents.
Ø
Conducted tours.
RESERVATION
& MAPS:
Ø
Railways.
Ø
Airways.
Ø
Roadways.
Ø
Maps.
INDUSTRIES:
Ø Public
sector.
Ø Private
sector.
Ø
Co-operative
sector.
HOTELS
& RESTAURANTS:
Ø
Economy/Family.
Ø Bar.
The Entity - Relationship Diagram of the project : (click here)