ScratchData LogoScratchData
Back to s121d05's profile

sudoku solver(using if)

S1s121d05•Created January 23, 2019
sudoku solver(using if)
0
0
4 views
View on Scratch

Instructions

This project is used to solve regular 9x9 sudoku. After you press green flag, input the sudoku that you wqnt to be solved (e.g.: 300104008005000200082509410204080605000206000803090107076901850008000700500807006). Than wait a moment. A few 'pop' sound would be heard after the computer have solved the sudoku. The solution can be seen in the list 'answer' (e.g.: 397124568145368279682579413214783695759216384863495127476931852938652741521847936). Have fun!

Description

I didn't use any techinque of solving sudoku. I just use the rules of sudoku and 'trial and error'. For example, if the first cell is blank, the computer guess if it is 1, would it contract with other cell? If no, then keep on guess the second blank cell. If yes, then first cell should not be 1.

Project Details

Project ID281606353
CreatedJanuary 23, 2019
Last ModifiedJanuary 24, 2019
SharedJanuary 24, 2019
Visibilityvisible
CommentsAllowed