Johnny's Software Saloon

Weblog where I discuss things that really interest me. Things like Java software development, Ruby, Ruby on Rails, Macintosh software, Cocoa, Eclipse IDE, OOP, content management, XML technologies, CSS and XSLT document styling, artificial intelligence, standard document formats, and cool non-computing technologies.

My Photo
Name:
Location: Germantown, Maryland, United States

I like writing software, listening to music (mostly country and rock but a little of everything), walking around outside, reading (when I have the time), relaxing in front of my TV watching my TiVo, playing with my cat, and riding around in my hybrid gas/electric car.

Sunday, July 30, 2006

ShortestSudokuSolver - Mark Byers' Website

There is a really interesting contest going on to write the shortest program to solve Sudoku puzzles.

It is open to any language and there are just a couple restrictions that have to do with the formatting of the program's source code.

Ruby is by far the leader, and the runner up is Python. The programs in both languages take advantage of a functional programming feature known as the map function.

ShortestSudokuSolver - Mark Byers' Website:
The shortest Sudoku solver is currently the following Ruby program, at 133 bytes long. It fits on 2 lines with no line longer than 80 characters.


It is cool to see functional programming showcased in this way. It is useful for all kinds of other things done everybody in programs too.

Technorati tags: , , ,

0 Comments:

Post a Comment

<< Home

Related pages & news