Inspiration

The thought of coding a sudoku game crossed our minds when me and my team mate were looking for a productive way to pass time. When we finally sat with a printed version, we realized that there was a necessity for a platform where we could solve these puzzles simultaneously with a source of reliable answer keys.

What it does

Our game achieves the following objectives: -Generates a sudoku puzzle randomly according to the player's choice of difficulty level .

  • Simultaneously generates a reliable solution.
  • Provides various modes of access to the player : 1.Solve online. 2.Print pdf and solve manually.

How we built it

We divided the problem into simple, basic tasks:

  • Input a level of difficulty according to user's convenience.
  • Generate a sudoku grid accordingly . Note that this is the solution version which abides the rules of the game.
  • Eliminate certain entities grid to give rise to the final puzzle version, which will be put forth across the player.

Challenges we ran into

While we could easily identify the problem , arriving at the solution proved to be a mammoth task full of obstacles. The major challenges were as follows :

  1. Generation of the solution version was itself the core challenge. There was a need to create several user defined functions which would work their out to create a grid with the condition of the presence of a digit in a particular row and column only one, without repetition. 2.While we could easily work with nested lists, there was a need of creating an aesthetic grid for display purposes to enable an enhanced user experience.

Accomplishments that we're proud of

  • We are proud of being able to successfully generate the solution version by means of user-defined functions, loops and iterations. It required deep mathematical analysis, logical and step by step approach to tackle this.
  • We were able to provide a good user experience by means of choice of difficulty, aesthetic outlook, multiple modes of access and reliable solutions.

What we learned

The most intriguing thing that we learned was the implementation of such a subtle algorithm which generated our solved sudokus. The math behind it was simply mind-boggling and out of the way. Then we faced the problem of creating an unsolved puzzle from the solved one. A neat hypothesis of leaving out 75% spaces as empty resolved our issue. Further, the task of giving a display of our puzzles in both online and print-pdf mode was a thing to learn about manipulating html into printing our data in the form of pdfs. Overall, it was a satisfactory source of knowledge of various skills , right from math to front-end coding.

What's next for SUDOKU Mindbender

We aim to further gamify this version, with the inclusion of multiple levels and with the ability to participate in teams which will provide a competitive edge to the game.

Built With

Share this project:

Updates