I'm gonna do it anyway because shit I spent way too long on this at one point in my life.
This is the code to "draw" the board. Each digit has its own pen routine. I could have done sprites for each digit but I remember that being problematic for some reason. https://imgur.com/HDgv8wx
This is the outer loop stuff for solving. There are a lot of utility functions not shown. https://imgur.com/1zoLZ2q
I implemented one very basic strategy along with "brute force", Which means it's technically a sudoku solver, although many puzzles will take way too long to solve.
Thanks for posting. Always fun to see peoples first attemtps at solving a problem. Writing bad code isn't necessarily bad. Being ignorant about mistakes and not learning is where it becomes a problem
64
u/trevorsg Aug 14 '18
I guess I shouldn't post the Sudoku solver I wrote in Scratch...
8
u/myhf Aug 14 '18
Here's a for-each block, if you want to try different programming styles in Scratch
3
u/steeldaggerx Aug 14 '18
Selection Sort for anyone that's interested
2
u/Mebethebest Sep 03 '18
What? I can't even read these garbage code block thingies
74
u/great_site_not Aug 14 '18
the 2.5D syntax highlighting makes it more readable
10
u/JoseOrono Aug 14 '18
Now I'm mad that no one's ported ShittyDB to Scratch yet >:(
9
u/[deleted] Aug 14 '18
I hate that they named it "scratch", whenever you say you made something from scratch, it can have the complete opposite meaning.
6
u/javaCoder710 Aug 14 '18
IDE color scheme at it's finest: halloween with a hint of mint
6
u/sheeve_boi Aug 14 '18
no scratch is not allowed in this sacred place
i will hunt you down
4
u/SnowdensOfYesteryear Aug 14 '18
Embedded developer looking at this post. "Is this python?"
3
u/mental_turtle Aug 14 '18
It's time to stop
1
u/ApertureCombine Aug 14 '18
Please do heap sort next
0
u/[deleted] Aug 14 '18
[deleted] — view deleted comment