Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

USE C#, Just a Blank Crossword no need for words 1)Randomly initialize an N by N crossword puzzle with black squares. The grid need not be symmetric like the New York Times crossword. 2)Number the...

1 answer below »
USE C#, Just a Blank Crossword no need for words 1)Randomly initialize an N by N crossword puzzle with black squares. The grid need not be symmetric like the New York Times crossword. 2)Number the grid as per the two examples given above. 3)Print out the numbers in sequence for the Across and Down clues (without the clues of course). 4)Print out the grid including the black squares and clue numbers. 5)Check whether the grid is indeed symmetric. Some Helpful Classes public class Square { // Either a part answer (letter) to a clue or a black square public char Value { set; get; } // Either a clue number or -1 (Note: A black square is always -1) public int Number { set; get; } … } public class Puzzle { private Square[ , ] grid; // A grid of Squares private int N; // Size of the crossword // Create an empty grid of size x size squares (4 marks) public Puzzle (int size) { … } // Randomly initialize a grid with the given number of black squares (4 marks) public void Initialize (int numBlackSquares) { … } // Number the grid (6 marks) // public void Number ( ) { … } // Print out the numbers for the Across and Down clues (in order) (3 marks) public void PrintClues ( ) { … } // Print out the crossword grid including the black squares and clue numbers (3 marks) public void PrintGrid ( ) { … } // Return true if the grid is symmetric; false otherwise (4 marks) public bool Symmetric ( ) { … }
Answered 128 days After May 20, 2022

Solution

Shweta answered on Sep 26 2022
69 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here