Date: Fri, 29 Mar 2024 18:11:34 -0500 (CDT) Message-ID: <535186995.1298.1711753894546@wiki-n2.rice.edu> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1297_696930202.1711753894545" ------=_Part_1297_696930202.1711753894545 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Download the support code for the Sudoku assignment. Try to understand f= irst the Sudoku class and the JUnit test classes. Then look over the Row an= d PartialSolution classes to understand how a game board is represented as = Java objects.
1. Look at the implementation of the toString() function of the PartialS= olution class. This implementation has problems of performance and function= ality (does not work correctly in all cases). What are these problems? Writ= e a new implementation for the toString() function that avoids both problem= s.
2. Write a function that tests if a PartialSolution is a descendent of a= nother PartialSolution (a descendent is "included" in its parent). Write Ju= nit tests for this function.
3. The tests for the support functions in the class PartialSolution are = too few. Many situations are not properly tested. Extend what is already of= fered with tests as varied as you can. (What you write here can be submitte= d as partial solution for the Sudoku assignment).