Task design and implement tower of hanoi puzzle program

Assignment Help Application Programming
Reference no: EM13369368

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: EM13369368

Questions Cloud

You may need to read the textbook which can be downloaded : you may need to read the textbook which can be downloaded at the link below to answer the given questions and you
Option valuation reportemployee stock options eso are call : option valuation reportemployee stock options eso are call options on a companys stock granted by the company to its
Explain critically growth maximisation model of morris and : explain critically growth maximisation model of morris and find the goal in morriss
Show how the successful mergers affects the following areas : show how the successful mergers affects the following areas of hr. hr planning. selection. compensation.performance
Task design and implement tower of hanoi puzzle program : task design and implement tower of hanoi puzzle program using c and windows presentation foundation wpf template in
In designed analog circuit efficiency is measured at steady : in designed analog circuit efficiency is measured at steady state or transient state of output node? efficiency of
Q not following competitors activities in the market is a : q. not following competitors activities in the market is a threat is debatable is it a threat or is it a weakness -
1how do you develop implement and evaluate an ems what are : 1how do you develop implement and evaluate an ems? what are some challenges in completing this process?2what is an lca?
Incident response planscenario fireto come out with a : incident response planscenario fireto come out with a incident response plan for a high-rise prominent hotel that

Reviews

Write a Review

Application Programming Questions & Answers

  Questiona distinguish between following object-oriented

questiona distinguish between following object-oriented concepts using suitable examples-i no-argument constructor

  Assignment 1- part aobject-oriented analysisobject-oriented

assignment 1- part aobject-oriented analysisobject-oriented analysis involves the following steps4. describe use cases.

  Problem 1nbsp in a town the percentage of men is 52the

problem 1nbsp in a town the percentage of men is 52.the percentage of total literacy is 48. if total percentage of

  Application development and programming

application development and programming languagesprogramming languages have evolved since the first generation

  If the user wants to read the input from a file then the

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

  Directionall of them short discussion each of them 200

directionall of them short discussion. each of them 200 words all together around 1200

  Tavelling salesman tsp problem on the l1-metric plane

travelling salesman tsp problem on the l1-metric plane problem description a travelling salesman wants to make a tour

  Problemthe manager of the super supermarket would like to

problemthe manager of the super supermarket would like to be able to compute the unit price for products sold there. to

  Hypertext markup languagethe basics of hypertext markup

hypertext markup languagethe basics of hypertext markup language and world wide web. first you will learn about

  1 consider the following attributed tree grammar for type

1. consider the following attributed tree grammar for type checking a program ast. for simplicity it hard codes

  Assessmentthe project reports will be evaluated in three

assessmentthe project reports will be evaluated in three areasaccuracy and completeness of computationsyou have to get

  Assignment 1nbspdescription this first assignment will

assignment 1nbspdescription this first assignment will allow you to become more comfortable with threads and the basic

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