sudoku

Sudoku for your home page

This is the new version of our classic sudoku service. Here is the previous version of the sudoku for the homepage

What about a daily sudoku on your web page? You can adjust the colours and bitmaps to the graphical profile of your web site. Every day you will automatically get a new nice sudoku. That can make visitors return to your site.

Is the puzzle unique? Yes, everyone that uses our service will get a unique puzzle. Your daily sudoku is different from ours, and from all our clients.

Does it require a lot of effort? No, it is easy! If you do not want to change the colours or bitmaps you can simply copy and paste our html-code. If you like the sodoku to look more personal you make have to a little bit. Make a copy of the css-template that we provide and modify it to make the sudoku look nice on your site.

Is it hard to solve your puzzles? We provide both simple and advanced puzzles. You can choose between 6 different ratings or you can as us to vary the rating.

Does it cost anything? No, it is free if you link back to us. You may also print our puzzles as long as you refer to www.sudokuAssistant.com as the source. (if you do not like to link back to us, please contact us for an offer).

Can you link back to us? Yes, but only from our growing link-page. This is done more or less automatically. You should have a good title and description -tag on that page. Pages that are visited frequently will automatically advance in our ranking of sudoku links.

Example of a small puzzle

To get the following sudoku

You only need to copy the following html-code to your home-page:

The above code will show the sudoku in an iframe, nowadays all browsers can handle iframes. We have placed the iframe in a table with two rows. Our iframe on in the first row and a link to us is on the second. The text by sudukoAssistant.com will therefore appear under the sudoku. If you like, you can remove the table and link to us from a more natural place on your home-page.

The sudoku is generated by a php-script (sudokugen1.php) that runs on our server. Your web server does not need to run any scripts.

To tweak the appearance

We will now discuss some details. If you do not plan to alter anything you may skip this part.

The script is named sudokugen1.php and it takes a few parameters. tip:If you like to experiment with the parameter we recommend you to navigate directly to url of the sudoku and then alter the parameters in the address field of your web browser.

square
This is the size (in pixels) of a small sudoku cell. If you change the parameter square you must also alter the WIDTH and HEIGHT of the iframe that contains the sudoku. (If one does not submit the square-parameter then the size of a cell will be determined by the so-called css-template).
id
This is a random number that makes your sudoku unique. It is important to send the same id when you like to display the sudoku's solution. (If one does not submit the id-parameter then a new sudoku is generated each time the web page is visited.)
kid
A normal sudoku is a 9x9 grid. But if kid=1 then you will get a small 4x4 sudoku ideal for kids and advertisements.
show
If show=1 then the solution is displayed.
old
Tells the age of the sudoku you like to display. Normally you like to display today´s sudoku, then old should be 0, but sometimes one would like to display (the solution of) and older sudoku. If old=1, yesterdays sudoku is shown, if old=2 the day before yesterday, etc.
mindiff, maxdiff
These two numbers defines the range difficulties that should be used. Presently, our hardest puzzles are rated 6. If mindiff=1 and maxdiff=6 then all kind of difficulties will be used. Some days the puzzles will be rather simple (rated 1) and some days they will be super tuff (rated 6). In the future we plan to change the maximum rate from 6 to 10. If you like, you may set maxdiff to 10 already now.
urldir
The complete url path to a folder on your web server where you have placed images, css-templates, etc.
css
This is the name of your personal css-template that defines colours, fonts, etc. If you do not provide this name then we will use the styles defines by our default css-file.
images
A listing of image file-names separated by commas. If provided, the images will be displayed instead of digits in the sudoku. (An alternative is to include these file-names in your personal css-file).
shield
The name of an image file. The image will be displayed in the empty sudoku cells. (Again, an alternative is to include this name in the personal css-file).

Here are a few examples of sudokus where we have altered the parameters square, old, show and kid.

Pictures

Our sudokus can show pictures instead of digits. There are two ways to accomplish this. The most general method is to make your own style sheet (css) and let that define which pictures to use, but it is also possible to give the image file-names as parameters to our php-script.

Below, we have used the parameters urldir and images. The first parameter defines the folder (on your web server) that contains the images. The second parameter is a comma-separated list of image file names. (If you are creating a 4x4 kid-sudoku you should submit 4 file-names).

The simple 4x4 sudokus can be used in commercial ads. A person may solve the puzzle his/her head in 10 to 60 seconds, but during that time the solver is stirring at your four icons which may convey a sublime message.

The css-template

By using your own style sheet you can alter the design of our sudokus.

Our sudokus are built by html-tables whose different elements belong to different classes that we have defined. (To see the html-code, right click on a sudoku and select view source in your browser.) Your style-sheet may alter the attributes of those elements, and hence the style of the sudoku.

Our classes are named sudokubig,smalltab,hide, dig1,dig2,etc..

sudokubig
This is the big 2x2-table that has a thick red dotted frame. The background color is blue (but the background is only visible in between the yellow squares). The TD-elements of the sudokubig-table have a yellow backgound. Each TD-element contains a smaller table.
smalltab
Every small table that corresponds to a block in the sudoku belongs to this class. In the present example, these tables have a black dotted frame and an orange background.
hide
Empty sudoku-cells belong to this class. Their background is light-blue.
dig1, dig2,..
All cells that contain the digit 4 belong to class dig4, etc.
To generate the above sudoku we have used the following css:

och html-koden:

To modify more styles one probably has to inspect the html-code our script produces.

Our sudokus on the Internet

On our link page there are several examples of web sites using our sudokus.
swedish svensk sudoku





our mail address