Sign in to follow this  

Basic Simulation

This topic is 4391 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Are there some tutorials in C# / C++ available online to help me get started with a very simple simulation? I have something like this in mind: I want to have a 10 x 10 grid on which I have "robots". Each robot will have very basic algorithms for doing the following: 1) Look for other robots. 2) If other robot found attack it or attach to it or share information. 3) If "health" declines, go to "recharging" station. Every 5 seconds the world "updates", resulting in each robot doing some task (move to empty square, attack, heal, share information, whatever) At first I would be content with just simple text output...something like this: Robot "Rex" is alive at cell 1,1 Robot "Bob" is alive at cell 5,5 Robot "Rex" has moved to cell 2,2 Robot "Bob" has moved to cell 4,4 Robot "Rex" has moved to cell 3,3 Robot "Rex" has detected Robot "Bob" Robot "Bob" has detected Robot "Rex" Robot "Rex" has attacked Robot "Bob" and caused 10 points of damage. Robot "Bob" has attacked Robot "Rex" and caused 10 points of damage. Robot "Bob" has back moved to cell 5,5 and is searching for more power. Robot "Rex" has moved to cell 4,4 (is chasing Robot "Bob") Robot "Rex" has just told Robot "Bob": "I have you now." I just need some code to sort of show me one or two ways of doing this...get my juices flowing.

Share this post


Link to post
Share on other sites
Quote:
Original post by xEricx
Hi!

While not exactly what you're looking for, a good introduction to this topic might be Mat Buckland's State-Driven Game Agent Design.

Hope this helps

Eric



Eric:

This is perfect...exactly what I was looking for. Cool website, by the way!!!

Does anyone else have some good sites for me to look at?

Tom

Share this post


Link to post
Share on other sites

This topic is 4391 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this