Question: Hello I've an assignment I'm stuck with. I've done most of the work but I used a 2d array instead of the Tile class, can

Hello I've an assignment I'm stuck with.

I've done most of the work but I used a 2d array instead of the Tile class, can someone help me?

Hello I've an assignment I'm stuck with. I've done most of the

The N-Puzzle is a sliding puzzle that consists of a frame of numbered square tiles in random order with one tile missing. The object of the puzzle is to place the tiles in order by making sliding moves that use the empty space. Your task In this assignment, you are asked to design a set of C# classes to represent an N-Puzzle game, where N is a perfect square (4,9,16, 25, 36, ...). Use the designed set of classes to develop a playable game with a simple console user interface. The player initially starts with a shuffled board and uses the keyboard to move the empty space up, down, left or right if applicable. There are many different ways this assignment can be solved with different merits. It is important that you are able to discuss your solution with respect to the different design concepts of the course. Steps To complete this assignment follow the steps below. 1. Design a class diagram detailing the different classes and their connections. Discuss your design with the assistants. 2. Implement the game based on the design. Revise the design if needed - iteration may be necessary. 3. Demo your game for one of the assistants and get an ok. 4. Send in your solution plus the class diagram on Canvas. Please package it using zip. Even though it may not be your first choice it makes it easier on my end. 5. Await feedback on your solution. Requirements This lab is intended to be a gentle introduction to C# and object-oriented programming. As such the need for object- orientation can be questioned. However, to make this a good exercise in object-oriented programming we will try to over-design the solution a bit. The demands are: Use of at least three classes, one of which should be a Tile class, representing the tiles. Make sure that the classes make sense and thing about cohesion and coupling. The fields of the Tile class must be private; in particular it should not be able to change the value of the tile after it has been constructed. The N-Puzzle is a sliding puzzle that consists of a frame of numbered square tiles in random order with one tile missing. The object of the puzzle is to place the tiles in order by making sliding moves that use the empty space. Your task In this assignment, you are asked to design a set of C# classes to represent an N-Puzzle game, where N is a perfect square (4,9,16, 25, 36, ...). Use the designed set of classes to develop a playable game with a simple console user interface. The player initially starts with a shuffled board and uses the keyboard to move the empty space up, down, left or right if applicable. There are many different ways this assignment can be solved with different merits. It is important that you are able to discuss your solution with respect to the different design concepts of the course. Steps To complete this assignment follow the steps below. 1. Design a class diagram detailing the different classes and their connections. Discuss your design with the assistants. 2. Implement the game based on the design. Revise the design if needed - iteration may be necessary. 3. Demo your game for one of the assistants and get an ok. 4. Send in your solution plus the class diagram on Canvas. Please package it using zip. Even though it may not be your first choice it makes it easier on my end. 5. Await feedback on your solution. Requirements This lab is intended to be a gentle introduction to C# and object-oriented programming. As such the need for object- orientation can be questioned. However, to make this a good exercise in object-oriented programming we will try to over-design the solution a bit. The demands are: Use of at least three classes, one of which should be a Tile class, representing the tiles. Make sure that the classes make sense and thing about cohesion and coupling. The fields of the Tile class must be private; in particular it should not be able to change the value of the tile after it has been constructed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!