Arduino Forum

Community => Exhibition / Gallery => Topic started by: carl47 on Feb 11, 2011, 07:33 am

Title: Sudoku using TVout
Post by: carl47 on Feb 11, 2011, 07:33 am
I have been a big fan of mdmetzle's TVout:


http://arduino.cc/forum/index.php?PHPSESSID=58312ce513dd400535aec4d135c619f5&topic=8814.255



With his latest library I have now put together a nice little sudoku game.



(http://carl47.bigblog.com.au/data/10/51407/image/sudoku739745409217235701320110211143900.JPG)


It requires 2 resistors for the composite video output.

We also need 5 pushbutton switches. Left, right, up, down and fire.
These are wired to the same arduino pins as used by nootropic in his
hackvision board design.

http://nootropicdesign.com/hackvision/

I have dont have a hackvision board but it should run my sudoku program.

Download:

SudokuUsingTVout.zip

From:

http://code.google.com/p/mysudoku/downloads/list
Title: Re: Sudoku using TVout
Post by: mkrumpus on Feb 11, 2011, 03:22 pm
Nice job!  The game works perfectly on Hackvision.  Glad the Controllers library was useful to you!
Title: Re: Sudoku using TVout
Post by: carl47 on Feb 11, 2011, 10:05 pm
Thanks nootropic.

I'm happy it works, it's so easy to make a simple wiring mistake.

Your buttons controller library saved me a lot of time.
Title: Re: Sudoku using TVout
Post by: bill2009 on Feb 11, 2011, 11:33 pm
very nice work!
Title: Re: Sudoku using TVout
Post by: carl47 on Feb 12, 2011, 06:49 am
Thanks bill2009.

I have been a little obsessed with sudoku.
I have done it in VB for windows, C for linux and now
partial C++ for arduino.

I think I am now about sudoku'ed out.
Title: Re: Sudoku using TVout
Post by: mkrumpus on Feb 12, 2011, 03:19 pm
With carl47's permission, I added the game to the Hackvision games page (http://nootropicdesign.com/hackvision/games.html).
I added automatic NTSC/PAL detection and sound feedback on button presses.
Title: Re: Sudoku using TVout
Post by: wossname on Feb 13, 2011, 12:05 pm
How about adding the ability to have the arduino solve a puzzle (eg. taken from a newspaper)?  You could type in the starting grid and algorithmically fill in the rest.  That would be cool.

But anyway this is a really nice project.  Well played.
Title: Re: Sudoku using TVout
Post by: carl47 on Feb 14, 2011, 06:07 am
Thanks wossname.

Yes that is a nice feature.
Another is a step back function to return to before you made an error.

Both these features are in my main programs using VB and C.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1287366986/0

I do not intend to put them in this tiny version.