If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Sudoku Game Help

So I'm using a css framwork to build my layout. I was thinking, as the game grid uses only one class, could I put all times this class is called, into a var. Then cycle through that var to build my game. This shows no errors, but I'm relativly new to Js and I would apreicate someone telling me how to test if this is right.

The other thing I would like some help with is converting these to input text areas via Js and if anyone has any links to trutorials, or maybe an algorithm I could use to generate the puzzles.

You can probably find some things in this page (See the script) which solve Sudoku and display grids.
You have probably to distinguish the board (see an interresting object in the preceding script) and his draw on the page...
I never find good script about Sudoku generation in the past, but some pages with Sudokus like this 49.151 Sudokus with 17 entries

you can get around it in your case by using singles within doubles (or vice versa, not important). If you need another set of quotes in there (for example if you were trying to pass another string as an argument in your onclicks) you would have to escape the quotes, which is another way to get around the problem you were having

This link containes thousands of possible sudoku puzzles for a 9x9 grid. What I would like to do is take a line, stick it in an array, then apply it to all my squares. The only part I need help with is the reading from a txt file.

ignore the first if statement, but the solution I found was that adding innerHTML reads and then displays the content of that element. I reached this point with the help of this. http://help.dottoro.com/ljpxmhgp.php

to read a text file you will have to use something like ajax (if you have the file on your own server). If it is hosted on someone else's server, you will need to use server-side coding, or possibly jsonp

to read a text file you will have to use something like ajax (if you have the file on your own server). If it is hosted on someone else's server, you will need to use server-side coding, or possibly jsonp

It's probably not going to be uploaded at all. I suppose a way around this would just to copy and paste the puzzles, but that just seems messy.