Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
urgent help in oops
October 08, 2009
can someone create a the simulator that support two type of creature - predators and prey.
The creatures live on a 2-dimensional grid of cells. An initial population of predator and prey are randomly distributed on the grid. The population evolves in discrete time steps. At each time-step creatures will move from one cell to another.
If a predator creature finds a prey creature at its new cell it will "eat" it and its fitness will improve.
If a cell contains two creatures of the same type they will "breed" by merging to produce a new creature of the original type but with fitness the average of the parent creatures.
If a prey creature finds itself on a new unoccupied cell its fitness will increase (for having avoided being eaten).
As it stands this will not produce a very realistic simulation of predators and prey! You implementation should allow for the extension of having some cells containing food to be eaten by the prey creatures, creatures being able to sense the contents of cells beyond their own and using this information as the basis for making a decision as to where to move at the next turn.
You are not required at this time to produce a nice GUI base programme. The programme when run (for some number of generations) should print out a simple summary of the numbers of each type of creature in each generation.
Posted Date: December 15, 2010 Points: 5
OOPs : Object Oriented Programming Tool.
* OOPs mainly called Class and Object,
* Class is a real world entity.
* Class is a template of Object or behavior of object
* Simply describe the class like blueprint of object.
* Instance of class is called Object.
* Calling all function or methods from object of particular class.
Four Piller of OOPs:
2) Data Abstraction
To post reply
Related Questions Related Questions
Urgent datagridview edit updated rows C#.NET
Datagridviewtextcolumn in C#.NET windows app urgent
Order By in Sql [its an Urgent]
Doubt in popup window.Urgent requirement
Problem in writing unit test cases in vs 2008 for a webapplication(please its urgent)
hi very urgent requirement
urgent please-Display No image picture after removed uploaded image in asp.net using sql server
Latest Forum Questions From The Same Category
Brief explanation with sample examples on oops conects and Access Specifiers in .net?
propeties in c#
Real time example of Multiple Inheritance in C#
Encapsulation Vs Abstraction
Example for encapsulation
Real time example of multiple inheritance
What is function overriding? give me an example
Use of Private Constructors
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend