Friday, December 17, 2010

Sudoku solver (Not finished yet)

Another application I've tried to make using only proce$$ing programming language is Sudoku solver.

I was and I still am wondering why are people fascinated by sudoku puzzles, which are in my opinion very boring and repetitive. And to totally eradicate any urges inside of me to solve another sudoku puzzle in the future I've (almost) written this application in proce$$ing.

There's one last chunk of algorithm missing still, but the application works in 95%. As usually with proce$$ing I didn't bother to add any visible GUI items, such as buttons or menus, so follow the instructions if you want to try it.

Here are some screenshots as how it works:
1. Find a sudoku you would like to solve

2. Rewrite the Sudoku starting numbers into their fields (just hover the cursor about the respective field and press number key)


Monday, November 1, 2010

Voronoi in Proce$$ing

I've encountered a very interesting programming tool called Proce$$ing, which is aimed at creating applications with primary visual output in fast and easy way.

You can check proce$$ing at it's home page www.processing.org.

I've yet to fully explore all it's functions, but my first tries are very promising.
Here's the same Voronoi program I've written in Actionscript before, but this time in Proce$$ing. The code is much shorter and the application much faster.



Proce$$ing enables the user to export the code as a standalone Win/Mac application or as a Java applet - which you can see right here.

Controls: Left-click to add a new node.
Hold left mouse button on a node and drag to move the node.

Source code: Can be found here.