Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As mellamokb's comment says, breaking things down into parts is the trick. At first glance I would probably do something like this:</p> <ol> <li>Hardcode in a sudoku board, and make a routine to print the board out</li> <li>Once that works right, then you'd need a menu. So extend your program to make a little menu that prints back the user's selection, and does nothing more</li> <li>Once that's going, you can start filling in the menu choices. So when the user selects option one, make the routine for swapping two rows. The other menu items can still just print out their number.</li> </ol> <p>Once you've got that working, you're actually nearly done. You can take your routine from #3 and make copies of it with small changes to make other 4 modifications possible.</p> <p>You don't mention where the sudoku board comes from. If it's hardcoded, you're done. If not, then all you have to is make that method. At this point, you already know that you can print the board right, show the menu, and change the board.</p> <p>You mention problems with arrays, and they can be a bit of a leap. Is there a specific question you have about arrays that we might be able to help with? They are like anything else in programming. You start not knowing a ton about them, and just sort of following what guidance and code you find elsewhere. As you gain more experience (as you will on this project and future projects), they'll be less mysterious and make more sense until one day they're as easy as 3 + 7.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload