The {sudoku-printable} macro embeds a static, printable Sudoku game in your content...
This macro is designed specifically for printing purposes and if arranged properly (using the section macro and column macro) you can easily fit 6 or more boards to a single printed page.
Add the printable board to your content using the following notation:
{sudoku-printable:difficulty}
Parameters
Name
Required
Default
Notes
default
normal
The difficulty of the board:
easy – The easiest skill level
normal – Normal skill level
hard – The hardest skill level
This plug-in is available without cost for both commercial and non-commercial purposes. However, if you have found it to be useful, particularly within a commercial environment, please consider making a donation to the author. This will encourage continued development of this and other plug-ins, as well as speeding up the response for your latest maintenance request.
If you wish to donate, it can be done easily with a credit card or bank transfer using PayPal. No account sign-up is required for credit or debit card payments.
The {sudoku-printable macro} is released under the BSD License.
This macro has been tested by Adaptavist with Confluence 2.1.2 and should work on all versions of Confluence 2.1.x.
It is usually pre-installed with Host accounts. To install it on your own Confluence installation, please see Suduko
Adaptavist maintain a JIRA Project for tracking bug reports and feature requests for this macro. The currently reported items are shown below:
jiraissues: Could not download[ http://jira.adaptavist.com/secure/IssueNavigator.jspa?view=rss&pid=10002&component=10242&resolutionIds=-1&sorter/field=priority&sorter/order=DESC&tempMax=25&reset=true&decorator=none] : caused by : Circular redirect to 'http://jira.adaptavist.com:80/secure/IssueNavigator.jspa'
To add the printable Sudoku board to a page, use the following notation:
{center}{sudoku-printable}{center}
Note: We've used the center macro to center the game on the page.
This results in a random normal skill level board being displayed each time the page is viewed:
Unknown macro: {sudoku-printable}
Setting the Skill Level
To set the skill level, specify easy, normal or hard as the default parameter. For example, the following notation will display a board at the most difficult skill level:
{center}{sudoku-printable:hard}{center}
Note: We've used the center macro to center the game on the page.
This results in a random hard skill level board being displayed each time the page is viewed:
Unknown macro: {sudoku-printable}
Hints and Tips
Use the [USERGUIDE:cache macro] to retain a specific Sudoku board for a period of time, usually 1 day:
{cache:refresh=1d}{sudoku-printable}{cache}
This will help prevent users from repeatedly refreshing your page trying to get a new board – a process that would put undue strain on your server and bandwidth. It's advisable to display a message stating how often the board will be updated.