Activity

lalswvm

Shipped this project!

Hours: 4.01
Cookies: 🍪 47
Multiplier: 11.64 cookies/hr

i built sudoku, i wanted to finish this so i can work on. my new project. the hardest part was making the computer generate the 9 by 9 sudoku board that is valid, and it took me lots of time. it was also fun making the “generating” part to make it a bit more fun.

lalswvm

I wanted to finish this so I can work on my new project, I just made the print button and made it able to remove some cells
also did the fun generating part where it just keeps randomly making it for two seconds
im going to ship this

0
lalswvm

added the difficulty of the slider with names
this was pretty challenging, and there were lots of bugs along the way, and it was tough to fix them
this doesn’t generate the actual sudoku board yet, im going to do that on my next develop

0
lalswvm

improved design, and added the sliders and button
(learned from w3schools)
the buttons and sliders do not function at all yet; the slider is to choose the difficulty and the button is to generate the puzzle
I thought that light color background was better, and changed the font. I will still try to improve the design later, and maybe add a code that will remove the cells.

0
lalswvm

Devlog 1:
Made code that generates a valid sudoku board. Every time it refreshes, generates a new board
First made random numbers, and made the computer check if its valid as a sudoku board:
for (let I = 0; I<9; I++){
if(board [row][I] == num) return false;
if(board [I][column] == num) return false;
}
I also added this, but also to check for every mini square in the sudoku board
I also added backtracking in case the computer got stuck

0