Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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?

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

What qualities do you see as necessary for your line of work?

Answered: 1 week ago