Task design and implement tower of hanoi puzzle program

Assignment Help DOT NET Programming
Reference no: EM13360353

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

Questions Cloud

A 2600-3000 word thought paper while a thought paper can : a 2600-3000 word thought paper. while a thought paper can and in this case does include research it doesnt pretend to
Question 1 name the four parameters thatnbspgovern the : question 1 name the four parameters thatnbspgovern the tropism of a virus. use 1-2 words for each parameter.question 2
You should read the attached pdf file to answer the given : you should read the attached pdf file to answer the given questions and you should comprise them in references list and
Intermediate level tasks below is a simple program it : intermediate level tasks below is a simple program. it creates 2 threads. the first thread keeps printing out x on the
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
Question 1 expand or contract the expression using the : question 1 expand or contract the expression using the properties of logarithms.nbspquestion 2 find the exact value
Write an report ofnbspharvard style 2500 words : write an report ofnbspharvard style 2500 words excludingnbspreferencingdiscuss different types of leadership and how
Question about applicant testing processthe company you : question about applicant testing processthe company you work for is considering changing its applicant testing process.
Hr temporary disabilityi need help with the questions : hr temporary disabilityi need help with the questions below1. what laws apply to temporary disability at the

Reviews

Write a Review

DOT NET Programming Questions & Answers

  What is the full path the to location of the web application

what is the full path the to location of the web application directory for the cset-test web application and what is the full path to the main.jsp file for the cset-test web application?

  Develop an app that generates a random number

Develop an app that generates a random number and prompts the user to guess the number. When the user clicks the  New Game  Button, the app chooses a number in the range 1 to 100 at random

  Design and use computer package incorporating the techniques

Java source files for your controller. Note that your controller must use fuzzy rules to earn these marks, and it must be different from the example FuzzyController.

  Create a windows form application

Create a Windows Form application that Reads a list of products from an xml file and shows a form that a customer can order

  Write a c# program containing array that holds five integers

Write a C# program containing an array that holds five integers. Assign values to the integers.Display the integers from first to last, and then display them from last to first. Save theprogram as IntegerList.cs.

  Point class having x and y coordinates

Write a program that includes a Point class having x and y coordinates as data member. Also implement an overloaded constructor for the Point class.

  Write c# program that declares variable to represent length

Please complete the following Programming Exercises listed in your book. All programs must be done according to these Programming Principles (properly formatted and commented). (If you want to see an example of a simple program, please see this Sa..

  1 develop and test a web services based application that

1 develop and test a web services based application that meets the following requirements applying soa design

  Write a function to convert the two dimensional coordinates

write a function to convert the two dimensional coordinates of a point from cartesian system to polar system by using x and y as its parameters

  C# visual basic 2012 design stick figure for hangman game

Hangman is a favorite childhood game. using C# visual basic 2012 Design the stick figure for this game

  What characteristics of the ajax programming style

What characteristics of the Ajax programming style do you believe will make it attractive to be utilized in applications within your workplace?

  Initials in block characters to a standard output device

c# programming using visual studio Write your initials in block characters to a standard output device.

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