Game Simulation:Implementing Simulation of objects using Python and Ruby
Here we are creating some objects. These objects resembles some animals in the real world and part of a food chain. Consider these objects are
Worm
Grass Hopper
Frog
Snake
Bull Frog
Each have some initial position in a (9,9) co-ordinate and some specific directions(E,W,N,S). In each clock objects will move. For this there is some specific rules. Worm and snake only move one point in either x or y direction.Frog,Grass Hopper and Bull Frog skip one unit that means they jumps either x or y direction.When they reach the boundary they should change their direction to either left,right or reverse. As we said these all are part of a food chain. So if any one reaches same position eating should takes place according to food chain. The chain mention that grass hopper only eat worms,Frog eats only grass hoppers, Snakes eats both frogs and grass hoppers,finally bull frogs are massive frogs they eat both snakes and fogs.
To get my Python project code visit:https://github.com/aneeshktry/Hunting-Game
To get my Ruby project code visit:https://github.com/aneeshktry/Hunting-Game-Ruby-
Here we are creating some objects. These objects resembles some animals in the real world and part of a food chain. Consider these objects are
Worm
Grass Hopper
Frog
Snake
Bull Frog
Each have some initial position in a (9,9) co-ordinate and some specific directions(E,W,N,S). In each clock objects will move. For this there is some specific rules. Worm and snake only move one point in either x or y direction.Frog,Grass Hopper and Bull Frog skip one unit that means they jumps either x or y direction.When they reach the boundary they should change their direction to either left,right or reverse. As we said these all are part of a food chain. So if any one reaches same position eating should takes place according to food chain. The chain mention that grass hopper only eat worms,Frog eats only grass hoppers, Snakes eats both frogs and grass hoppers,finally bull frogs are massive frogs they eat both snakes and fogs.
To get my Python project code visit:https://github.com/aneeshktry/Hunting-Game
To get my Ruby project code visit:https://github.com/aneeshktry/Hunting-Game-Ruby-
No comments:
Post a Comment