Sudoku

Apologies if this program is not perfect, but as I'm sure you'll see from my CV,
this is the first time I've ever used ActionScript to do anything, so quite a lot of the
short time frame I had was spent trying to get used to a new language.



The buttons at the bottom of the screen are the only interaction required by the user.
They must be pressed in order left to right. Trying to solve a puzzle before loading anything 
will result in a crash, as will trying to write a puzzle before loading.

The solver will work for most simple puzzles. I used the Sudoku generator available from the website
referenced below to generate random puzzles and check their solutions. My program seems to
successfully solve all problems marked as "Easy" or "Medium" and some solutions marked "Difficult".

For those solutions which the solver was unable to solve, the program unfortunately gets stuck
in an infinite loop. This is simply due to the fact that the puzzle is never getting marked
as solved.

Other Issues - 

If the .json file you try to load/write is not in the same file directory as the .exe file on the 
local computer, there is a crash as the program is unable to find the file.

This also occurs when compiling the source code if the .json file is not in the /bin folder.


Misc -

I've included the .json files I used to test the program. It solves all but two of them.



References - 

Sudoku129 [online] Available at: <http://www.sudoku129.com/puzzles/index.php> [Accessed 30 March 2012].

Shupe, R., 2010. Learning ActionScript 3.0. 2nd ed. Canada: O'Reilly.

Lott, J. 2003. ActionScript Cookbook: Solutions and Examples for Flash Developers. O'Reilly.



Developed using FlashDevelop 4.0.1.
