photo

Antonia Davis


自 2016 起处于活动状态

Followers: 0   Following: 0

统计学

Feeds

排序方式:

提问


I am trying to write a matlab code to check a solved 9X9 sudoku problem. I can't seem to get it to work. Any ideas where I went wrong?
function valid = sudoku (m) valid = (size(m) == [9, 9]); if (~valid) fprintf('Sudoku: size must be 9x9\n'); ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


I am having trouble with a problem I am working on. The code works until I get to the next step which is a menu asking if the player wants to play the same game again. I can't seem to get it to loop back to the correct spot.
|i=1 while i>=1; choice = menu('Do you want to play a game?: ','yes','no') if choice == 2 error('Program wil...

8 years 前 | 1 个回答 | 0

1

个回答