Ask DOT NET Expert

For this program, you will develop a C# windows application that will allow a user to play an animal simulation game.

You will need to create a base abstract "animal" class with an abstract "move" method and a set of derived concrete classes for: "cricket", "frog", "bird", "mouse", "snake" and "hunter". Each animal will move around randomly on a board in a different way and displaying different move behaviors.

You are welcome to define the movement behaviors you wish, e.g., cricket will jump one square on the board during each "time advance" period, while a bird may fly two or three or more, while a hunter is more static waiting to have a bird in sight (assume the hunter can only "see" up, down, left and right on the board).

For ease of implementation you can assume that if an animal moves off the board on the right, it reenters in the left (likewise, left to right, top to bottom and bottom to top).

In other words, you can use a modulo function to bound the locations in the board after movement. When another animal is close to a "higher" animal, it can be eaten or killed (e.g., a frog eats crickets, a hunter kills birds and snakes, a mouse kills frogs, a bird also eats crickets, a snake eats mice and frogs. Define a board, say 50X50 and display a number of each animal (including hunters) on the board (you can use image files to display each animal on the board) and provide a set of buttons for the user to control each iteration.

During each iteration, each animal will move, after the new positions for all animals are set, the lucky ones (have food close by) will eat, the unlucky ones will be eaten or killed. Make sure that two animals do not sit in the same square.

Allow the user to set parameters (like, number of each kind of animal, how close food needs to be in order to eat it, etc.) either via menus, buttons, drop down boxes or whatever GUI control you find appropriate. It should be a fun assignment in which you have to use inheritance, and polymorphism as well as some of the GUI facilities of .NET.

Document any assumptions you make (e.g., hunter can kill only neighboring snakes but can kill birds up to N locations away) EXTRA CREDIT:

You can use a timer to advance the game (say animals move every X seconds, for example) and provide a "next" button that will trigger movement from all the animals with the possibility to flip between manual movements using the next button and automated movements using the timer.

Limit movements to prevent animals to move off the board and re-enter on the other side. E.g., if an animal is in a square on the first row, it can only move left, right or down, but not up.

DOT NET, Programming

  • Category:- DOT NET
  • Reference No.:- M93093842

Have any Question?


Related Questions in DOT NET

Assignment specificationthis assignment is split into two

ASSIGNMENT SPECIFICATION This assignment is split into two documents. 1. Assignment Specification. This document contains the specification for what you will be required to do. 2. Assignment Addendum. This document conta ...

Scenariouser modelling inc would like to organize a series

Scenario User Modelling Inc. would like to organize a series of conferences focusing on research topics in the area of user adaptive systems and personalization. They need to organize annual conferences for researchers a ...

Casewe sell pdfs from our site and pdfs can be ordered from

Case We sell pdf''s from our site and pdfs can be ordered from the site by selecting a book, putting it in a shopping cart, then signing in with a password or as a guest, and then checking out. For some reason, when a pu ...

Summarythis assessment requires you to develop a simple

Summary This assessment requires you to develop a simple text editor with a basic offline user login. It is a windows application that will allow new uses to be added, existing users to login, and to create/save/edit tex ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As