Question: Only need to complete steps 1-3. My code is correct and implements 1-2 already. I just need code for step 3 (calcAccess). Thank you! main.cpp
1. getNextlocation - fix infinite loop. If no squares available, set row and col to -1 2. testAll - run knights Tour many times, and report best result 3 calcAccess -implement. How many squares can the knight reach in 1 move? 4. knightsTourWarnsdorf- implement. Uses Warnsdorf's heuristic 5. knightsTourWarnsdorfRecalc -implement. Recalculate 'Access' after each move Submit your version of main.cpp and knight.cpp, extended to solve as many of the problems 1 thru 5 as you can manage. At minimum, attempt 1, 2 and 3. Submit printout from a run of testAll. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
