Design tower of hanoi puzzle program

Assignment Help Programming Languages
Reference no: EM1368297

Task: Design and implement Tower of Hanoi Puzzle program using C# and Windows Presentation Foundation (WPF) template in Visual Studio 2012 or newer.

The Tower of Hanoi Puzzle involves a stack of n graduated disks and a set of three needles called A, B and C. The initial setup places the n disks on needle A. The task for the program is to move the disks one at a time from needle to needle until the process rebuilds the original stack, but on needle C. The challenge is the fact that at no time a larger disk can be placed on top of a smaller disk.

Requirements:

Your design and implementation should satisfy the following requirements:

1. When a player starts your program, three empty needles appear.

2. The player enters a number between 1 and 10 inclusive to set the number of disks. All disks are placed on the left needle in ascending order (the smallest at the top).

3. The player chooses a level (easy, medium or hard) then starts playing. A countdown timer appears showing the time left for playing.

4. The player can use computer mouse to move disks as follows:
a. Only one disk may be moved at a time.
b. Each move consists of taking the upper disk from one of the needles and sliding it onto another needle, on top of the other disks that may already be present on that needle.
c. No disk may be placed on top of a smaller disk.

5. If the player completes the puzzle before the timer ends, the player is asked to enter player name. Player name, playing time (in seconds) and puzzle level will be saved to a text file. If no player name is entered, ‘anonymous' will be saved instead. If the player plays the puzzle again and the new playing time is shorter than the saved time (with the same level), your program will update the saved time with the new time then saves it.

6. The text file contains a list of player names, times in seconds, and levels. No duplicate is found for player names (i.e., a player name appears only once in the list with a particular level. This means a player name can appear 3 times because there are 3 levels). The list is sorted by playing time in ascending order (the shortest time is at the top).

7. If the player wants to know his/her shortest time for a particular level saved in the text file, your program is able to show it and you have to use a search algorithm in lecture note to implement this request.

Reference no: EM1368297

Questions Cloud

Show how the successful mergers affects areas of hr : Show how the successful mergers affects the given areas of HR like HR planning, selection and compensation.
Future generations benefit from deficit spending : If deficit spending -crowds out some private investment, could future generations become worse off? If external financing eliminates crowding out, are future generations thereby protected?
Calculating annualized return : The treasurer of a U.S. firm noted that although short run deposits in Swiss bank accounts had earned the company only a 3% annualized return when measured in Swiss francs, in dollars the company had realized a 12% rate of return.
Choosing the best alternative : Suppose a firm that is deciding whether to operate plants only in United States or also in either Mexico or Canada or both. Congress is currently discussing an overseas investment in new capital tax credit for U.S. firms that operate plants outside t..
Design tower of hanoi puzzle program : Implement and design Tower of Hanoi Puzzle program using C# and Windows Presentation Foundation WPF template in Visual Studio 2012 or newer.
Marginal revenue equation and optimal output combination : Let a company's demand be given by: Q=100-P. Let company's marginal cost be $2 per unit of production. Solve for the firm's marginal revenue equation and optimal output or price combination.
Regulating taxi cab owners association : Many cities regulate taxi industry by licensing cabs. These licenses are often called medallions because they are issued in the form of a metal shield that must be affixed to hood of the cab, where enforcement officials can easily see it.
Optimal price levels by using advanced pricing techniques : Black Diamond Tennis & Golf Club offers golf and tennis memberships to residents of Black Diamond, Ohio, in which there are 2-types of families:
Calculating the real gdp : Use the information on U.S. real GDP below to calculate real GDP per person for each year. Then use these numbers to compute the percentage increase in real GDP per person from 1987 to 2005.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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