Design and implement tower of hanoi puzzle program

Assignment Help DOT NET Programming
Reference no: EM1336556

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. More details can be found at the following web pages: https://en.wikipedia.org/wiki/Tower_of_Hanoi and https://mathworld.wolfram.com/TowerofHanoi.html. 

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). The list is sorted by playing time in ascending order (the shortest time is at the top). You have to use a sorting algorithm in lecture notes to do this.

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.

8. Your program can provide an animated solution to show how to solve the puzzle with a given number of disks. You use a recursive algorithm in lecture notes to do this.

9. Your program needs to handle all exceptions. 

10. You need to use XML comments and Microsoft convention styles for writing C# code and indentation. 

Reference no: EM1336556

Questions Cloud

What are the differences between science and religion : A 2600-3000 word "thought" paper.  What are the differences between science and religion.  While a thought paper can (and in this case, does) include research, it doesn't pretend to be objective.
Biology quiz : Biology Quiz: Using information at the CDC Influenza website, What is the most prevalent strain of influenza that is circulating in the 2012-13 flu season (Select one)?
How to best align operational structures with strategy : Analyse and evaluate the proposals of the authors about how to best align operational structures with strategy. With which perspective of operations strategy does the authors' proposal best fit? Analyse the four perspectives outlined by the authors t..
Intermediate level tasks : Intermediate Level Tasks :  Below is a simple program. It creates 2 threads. The first thread keeps printing out X on the screen, and the second thread keeps printing out O on the screen.
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 Visual Studio 2012 or newer.
Expand or contract the expression : MTH-163 Precalculus I: Expand or contract the expression using the properties of logarithms. Find the exact value without using a calculator. If this is not possible, state why not.
Discuss different types of leadership : Write an report of  harvard style 2500 words excluding  Referencing,  Discuss different types of leadership and how they influence the workplace attitudes and behaviors of followers.
Question about applicant testing process : Prepare a short essay discussing some of the legal and ethical considerations of major types of test: cognitive abilities, motor and physical abilities, personality and interests, and achievement test.
What laws apply to temporary disability : What laws apply to temporary disability at the workplace and Under what general circumstances is the employee entitled to benefits

Reviews

Write a Review

 

DOT NET Programming Questions & Answers

  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

  Implementing the insurance management system

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

  Design style elements in asp

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

  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.

  Develop web services based application

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

  Inventory management system in c# application

Inventory management system in c# application

  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.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Prepare a web application

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

  Blinky lights

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

  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.

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