Develop a windows application that will allow user to play

Assignment Help DOT NET Programming
Reference no: EM132106373

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.

Reference no: EM132106373

Questions Cloud

Most people would readily argue for the ability : Most people would readily argue for the ability to live in a free society in which they are allowed to do as they desire, but what happens when one's choices
What is the exection time on the new process : The program currently spends 30% of its execution time on executing floating point instructions.
Hilton confessed to killing 7 people : Hilton confessed to killing 7 people. He stated that he didn't care about those people; he told the police that he is indifferent and he did not
Thoughts on the view held by many scientists : What are your thoughts on the view held by many scientists that our feelings, emotions, and even a sense of our spirituality are linked to chemicals in our brai
Develop a windows application that will allow user to play : Develop a C# windows application that will allow a user to play an animal simulation game.
Think in terms of personality : Although two people are both 65, why would one seem much older than the other? Think in terms of personality, physical development/genetics, environment, etc.
Piece of getting through a degree program : Self-care is a vital piece of getting through a degree program. Share what sort of self-care plan you have in place, if any.
A program draw a rectangle on the screen : You have a program draw a rectangle on the screen and allow the user to change the color/size of the rectangle.
Qualitative methods of describing a type of behavior : Please compare quantitative and qualitative methods of describing a type of behavior.

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Develop web services based application

Develop and test a Web services based application that meets the requirements applying SOA design principles.

  Design style elements in asp

Add drop down lists for modifying the different style elements for the label element that displays the time

  Create a shopping cart in asp

The users will use a browser to access the on-line store. The web server software for the production web server is Windows 2003 Server /IIS6.

  Inventory management system in c# application

Inventory management system in c# application

  Using .net resources to teach .net

This project will use the .NET framework to produce a set of materials to demonstrate the fundamental principles of .NET. Ideally it should demonstrate some of the principles of the framework e.g. interoperability.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Blinky lights

Analysis proving that your code blinks the LEDs at the specified rates.

  Prepare a web application

Prepare a web application that will be used to keep track of patients registering in a hospital.

  Implementing the insurance management system

Implementing the Insurance Management System and implementation of Components as Web Services.

  Describe the characteristics of visual studio 2005

Describe the characteristics of Visual Studio 2005 Visual Studio.Net is a suite of products that includes 4 main languages. Name these languages and outline their use in industries

  What is a connectionstring

What is a ConnectionString. Give a suitable example to illustrate the various part of a ConnectionString

  Prepare a web application for internet service provider

Prepare a Web application and write the code also event planning document base. This web application allows the user to sign up for an Internet service provider for home connectivity.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd