This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

PiRocks
PiRocks presents ...

2009/12/30

Sudoku

This is a game of Sudoku, it allows you to click on a gridsquare, then select a value for it. There are no given
restrictions. I am having problems making it react at a decent speed and making it correctly detect when you win.

3156 views / 724 in the last 7 days

Tags: mouse game with-source interactive sudoku

open in greenfoot
Your browser does not support the canvas tag.
spacebluespaceblue

2009/12/31

I guess you could try turning the entire thing into an int[][] and detect if all the rows, columns, and 3x3 boxes are fine. However, if you're planning to preset this with puzzles, then just having a few int[][]s stored as the answer keys, turning the entire thing into an int[][], and comparing the two would work.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.