By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

help me please

P: 60
hi friends,
im a very eager person to do something funny and crazy but serious programs with C.
i need your help. i have done a program for some funny(simple) games like "flames" and guessing a four digit number and so on.
now i need some topics that i can implement in programming. That is i need some different topics to work on.
Can anybody help me?
Oct 17 '06 #1
Share this Question
Share on Google+
6 Replies


P: 43
hi friends,
im a very eager person to do something funny and crazy but serious programs with C.
i need your help. i have done a program for some funny(simple) games like "flames" and guessing a four digit number and so on.
now i need some topics that i can implement in programming. That is i need some different topics to work on.
Can anybody help me?

hi.. design a expression evaluator.. :)
Oct 17 '06 #2

Banfa
Expert Mod 5K+
P: 8,916
hi.. design a expression evaluator.. :)
Of course if you look at anushhprabu' posts you will realise that he only says that because he wants someone to do one for him.

However you would learn a lot from designing an expression evaluator.

How about this, design a space racing game.

The track is defined by a series of way points in 3D space in a cube 100Mk on a side, a ship must pass within 5km of a way point to have passed it.

The track definition will be in a file.

each ship definition will be in a file, a ship is defined by 5 parameters

Thrust, how fast it can accererate in a forward direction
Manuver, how fast it can change direction
Hull, how much damage it can take before falling apart
Guns, the strength of the weapons it has for firing at other ships
Accuracy, how good it is at hitting the target

In any race the sum of Thrust, Manuver, Hull, Guns and Accuracy must be below a given value.

The program will take a parameter giving the ship parameter limit value and multiple file names, 0 or 1 of the named files can be a track definition, the rest must contain a ship definition.

If none of the files is a track file then the program will just verify that all the ships meet the parameter limit.

If 1 of the files is a track file then the program will verify that all ships meet the ship limit and then run a 3 lap race round the supplied course.

Ships will follow this behaviour each turn

1. Fire guns at nearest opponent
2. If required rotate to face the next way point (ths may take more than 1 turn for a ship with low manuver
3. If it is advantagous fire the main thruster.

Ships do not run out of fuel
Ships can not go faster that 0.25c

All files will be text format, editable by and standard text editor.
Oct 17 '06 #3

P: 60
thank you for your kind help. now only i saw the msg because im not available in work due to my sick. i started working on...
Oct 26 '06 #4

P: 60
hi,
please explain me detail about an expression evaluator.
Nov 13 '06 #5

Banfa
Expert Mod 5K+
P: 8,916
An expresion evaluator is a program that can evaluate a mathematical expression given as a string, for instance you could give it the string

"4 * (3 + 2)"

and it would evaluate the expression in the string and return the result

20
Nov 13 '06 #6

100+
P: 111
I think this site may help U.

http://developer.nomadph.com/links.html
Nov 15 '06 #7

Post your reply

Sign in to post your reply or Sign up for a free account.