Sentient Sudoku Solver

2 thoughts on “Sentient Sudoku Solver”

  1. Hey, nice job Anthony, that’s awesome!

    It’s an interesting point about referencing the boxes. I struggled to find a nice way to do that, too, which is why I haven’t yet added a Sudoku example to the website. I made a gist of mine, for comparison: https://gist.github.com/tuzz/7534bb2dad961b15966e661b33797163 It uses a feature I haven’t documented yet, Array#push. Is that cheating? 🙂

    I’d like to link to this blog post from the website, if that’s all right with you? It’s exciting to see people using the language!

    Chris

    Like

    1. It’s not cheating. You made the language, you literally get to make the rules! Also, feel free to link this if you want to.

      Looking at the snipit the “sudoku.boxes.each” invariant reads really nicely, it makes it very intuitive. It does require some setup but it’s probably worth it. Also like the optimisation of calling the between 1-9 check once. I was being quite inefficient with that now I think about it.

      Keep up the good work man. I’m looking forward to shipping stuff like this to prod!

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s