Showing posts with label Sudoku. Show all posts
Showing posts with label Sudoku. Show all posts

Saturday, November 16, 2024

Excel Simple Sudoku Solver

There are many different ways to solve a Sudoku puzzle with a computer. A previous post explained how to solve Sudoku puzzles with pencil marks and solving techniques (as a human would do), and also using brute force with or without backtracking, something only a computer can do. However, that was all too advanced and created some confusion among readers. In this post, we take a step back and use a very basic solving algorithm, which is probably the simplest way to solve a Sudoku puzzle with a computer. The algorithm applies basic logic to find unique occurrences for each puzzle gap. This will only solve Sudoku puzzles of low and medium difficulty though (maybe some difficult too).


Wednesday, March 2, 2022

Excel Sudoku Generation Techniques: An Overview

There has been some interest and several questions around the macros used to generate and solve Sudoku puzzles published in this blog. In this post, we will review the different methods available to generate Sudoku puzzles with Excel VBA (or any other programming language), while the macros to solve Sudoku puzzles have been covered in this previous post: Excel Sudoku Solver. There are basically two ways to generate Sudoku puzzles with a computer. We can use either incremental or decremental generation.


Thursday, February 10, 2022

Excel Sudoku Solver

Stuck with a difficult Sudoku? Get Excel Sudoku Solver and learn the principles of solving Sudoku puzzles in Excel using VBA macros. The solver uses logic deduction rules to resemble the human solving ability. Among these, we will see macros to get the pencil marks, solve singletons, find hidden singles, and find pairs, triplets, and quads, to eliminate possibilities. All that code is available in the simplified version of Excel Sudoku Solver, which solves Sudoku puzzles of medium difficulty. You can also download the full version of the Excel Sudoku Solver that uses more advanced techniques and a backtracking algorithm to crack puzzles of any difficulty level.

Friday, April 16, 2021

Excel Sudoku Pro

Excel Sudoku Pro is an improved version of the Excel Sudoku Generator posted in this blog a couple of years ago (Excel Sudoku Generator). It creates random Sudoku puzzles in Excel with four levels of difficulty, tracks resolution time, error, etc. Furthermore, it allows to upload and download Sudoku puzzles to and from the internet to share performance, challenge, and compete, with other users. Now you can also play Sudoku Pro online. Try it out!

Saturday, January 6, 2018

Excel Sudoku Generator

In this post we see how to create Sudoku puzzles with Excel VBA macros. Excel Sudoku Generator creates completely random puzzles with three levels of difficulty. The VBA code uses decremental generation with algorithms to ensure removed numbers do not compromise a unique solution, with the peculiarity of not using any solver to do so. This version of Excel Sudoku Generator was shared for learning purposes and is not the most efficient though. A simpler version has been created to help readers better understand the VBA code: Excel Simple Sudoku Generator. An improved version to create professional Sudoku puzzles is also available for download here: Excel Sudoku Pro. You can also play Sudoku Pro online now!


Popular Posts