Which language should I learn to create a sudoku game?

Posted by Brandan on Stack Overflow See other posts from Stack Overflow or by Brandan
Published on 2012-09-18T02:58:06Z Indexed on 2012/09/18 3:37 UTC
Read the original article Hit count: 138

I'd like to learn a new programming language, something besides all the scripting languages I've used for the past many years (Ruby, JavaScript, Perl, PHP, bash). I figured it might be interesting to make a sudoku game since there are plenty of documented algorithms and it only requires fairly simple data structures. It might start out as either a generator or a solver of puzzles, not necessarily both and not necessarily with a GUI.

My goal is primarily to learn some new programming concepts beyond MVC and UI design, secondarily for this thing to be pretty fast.

Is there a language that particularly shines for these sorts of constraint satisfaction problems? Is it suited to a functional language like Haskell or a highly concurrent language like Erlang (say for solving puzzles much larger than 9 x 9)? Or is this question mostly meaningless?

© Stack Overflow or respective owner

Related posts about functional-programming

Related posts about sudoku

  • Do you play Sudoku ?

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    Did you know that 11gR2 database could solve a Sudoku puzzle with a single query and, most of the time, and this in less than a second ? The following query shows you how ! Simply pass a flattened Sudoku grid to it a get the result instantaneously ! col "Solution" format a9 … >>> More

  • Python sudoku programming

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I need your help on this. I have this program and I must finish it. It's missing 3 parts. Here is the program I'm working with: import copy def display(A): if A: for i in range(9): for j in range(9): if type(A[i][j]) == type([]): print A[i][j][0], … >>> More

  • Sudoku solver evaluation function

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hi, So I'm trying to write a simple genetic algorithm for solving a sudoku (not the most efficient way, I know, but it's just to practice evolutionary algorithms). I'm having some problems coming up with an efficient evaluation function to test if the puzzle is solved or not and how many errors there… >>> More

  • Solving Naked Triples in Sudoku

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hello, I wished I paid more attention to the math classes back in Uni. :) How do I implement this math formula for naked triples? Naked Triples Take three cells C = {c1, c2, c3} that share a unit U. Take three numbers N = {n1, n2, n3}. If each cell in C has as its candidates ci ? N then we can… >>> More

  • Sudoku Solver

    as seen on SQL Blog - Search for 'SQL Blog'
    Today I am putting up something silly, just for fun. I set myself the task a while back to write a Sudoku solver in T-SQL, but with two dumb constraints that I would never follow given a real problem: I didn’t look at any documented techniques for solving Sudoku, and I specifically avoided T-SQL solutions… >>> More