publish and play SUDOKU on web browser
NumberApplet version 1.3



Some usefull functions(hint,note and analysis) are added.
These are also omitable.

日本語ページ

From writer:

I can hardly read and write English,
and recognize that this document contains many wrong English.

So,I hope that someone corrects my poor writing.
Isn't there a kind person ?

Japanese amateur programer: RouteTakana



Sample(How to play)
To select a cell, click on it.
To Unselect a cell, click around the question.

To move the selected cell, use the arrow keys of keyboard.
If unable,click on the question again.

To show or hide "Data in/out frame", click twice continually around the question.
(See the following explanation.)
upper:comment
show the action and result

lower:hint1
show the innable number in the selected square if checked

upper:data input
input the selected number in the selected cell
(by keyboard too)

middle:note
note numbers at every cell


lower:hint2
stress the selected number and its contained line

cancel------format all data
check-------check the present answer completed or not

analysis once-------analyse the question once
analysis full---------analyse the question as far as analysable
analysis stop-------stop the analysis

save-------save the present data temporarily
load-------load the temporary saved data



"Data in/out frame"

To show or hide "Data in/out frame", click twice continually around the question.

This frame can save plural cell's data temporarily.
To save forever, you must save the text on this frame to a text file.
  • [take out]-[question] ---- take out the present question data in field by text
  • [take in]-[question] ---- take in the field text data to the question

  • [take out]-[slot1-3] ---- take out the slot data in field
  • [take in]-[slot1-3] ---- take in the field data to the slot
  • The temporary data disappears when you shut down web browser.
    To save forever, save to text file.

    more SUDOKU questions



    Downroad

    "number_13.zip"(67.3KB)



    Showable type(version 1.3)



    Explanation

    This program is JavaApplet,so you must edit web page(HTML document).

    1. Arrangement of file and JavaApplet

    2. Designation of block size

    3. Designation of question contents(new version)

    4. Designation of question contents(old version)

    5. How to show unnormal type(combination,diagonal)

    6. Omission of additonal functions(hint,note,analysis)

    7. How to change language



    1. Arrangement of file and JavaApplet


    Arrange files as follows:
    [***](optional folder)
     |
     |--***.htm(web page which JavaApplet is arranged in)
     |
     |--***.csv(question file)
     |
     |--english.txt(language file)
     |
     |--NumberApplet.class(program file)
     |--Blank.class
     |--Unit.class
     |--NumberDataFrame.class
     |--NumberLoader.class
     |
    
    Arrange JavaApplet in web page as follows:

    <applet code="NumberApplet.class" width="[applet width]" height="[applet height]">
    <param name="languagefile" value="english.txt">
    <param name="size" value="[cell size]">
    (Add other parameters here.)
    </applet>


    Use JavaApplet parameter to designate condition.

    Parameter "languagefile" is necessary to use this program in English.
    Use with attached language file "english.txt".

    Parameter "size" is cell size of question by pixel.
    (Default value is "40". Designate only if other size is necessary.)

    Regulate JavaApplet size and cell size to look better. ---- regulation samples

    return


    2. Designation of block size

    If question size is 9x9,16x16 and 25x25, block size is recognized automatically.
    So, size designation is almost always omitable.

    When question size isn't above and/or question type is combination which is not fit block,
    add the following parameter between applet tag.

    <param name="wide" value="[block width]">
    <param name="high" value="[block height]">

    These are block width and height in question, not question width and height.
    (If question size is 9x9, block size is 3x3.)

    return


    3. Designation of question contents(new version)

    Input numbers like the question by spreadsheet(for example "Excel").
    Add "]" at right and down end.

    Save by comma separated values(*.csv).
    Place it as question file.

    Add the following parameter between applet tag.

    <param name="datafile" value="[question file path]">

    A B C D E F G H I J
    1 4 5
    7 9 2
    8 6 ]
    2 9 6

    4

    2 3 ]
    3

    1
    8
    4

    ]
    4 7

    6
    4

    1 ]
    5 6 2 4
    1
    3 7 9 ]
    6 8

    9
    7

    2 ]
    7

    6
    5
    2

    ]
    8 3 4

    6

    1 8 ]
    9 5 8
    1 7 3
    6 4 ]
    10 ] ] ] ] ] ] ] ] ] ]
    (above sample question)
    To show answer from beginning, add "\" at the head of number.

    A B C D E F G H I J
    1 4 5 \3 7 9 2 \1 8 6 ]
    2 9 6 \8 \5 4 \1 \7 2 3 ]
    3 \2 \7 1 \3 8 \6 4 \9 \5 ]
    4 7 \3 \9 6 \2 4 \8 \5 1 ]
    5 6 2 4 \8 1 \5 3 7 9 ]
    6 8 \1 \5 9 \3 7 \6 \4 2 ]
    7 \1 \9 6 \4 5 \8 2 \3 \7 ]
    8 3 4 \7 \2 6 \9 \5 1 8 ]
    9 5 8 \2 1 7 3 \9 6 4 ]
    10 ] ] ] ] ] ] ] ] ] ]
    (above sample question)

    return


    4. Designation of question contents(old version)

    Open question file(*.csv) by text editer(for example "Notepad").
    Copy this text and paste in parameter.
    4,5,,7,9,2,,8,6,]
    9,6,,,4,,,2,3,]
    ,,1,,8,,4,,,]
    7,,,6,,4,,,1,]
    6,2,4,,1,,3,7,9,]
    8,,,9,,7,,,2,]
    ,,6,,5,,2,,,]
    3,4,,,6,,,1,8,]
    5,8,,1,7,3,,6,4,]
    ],],],],],],],],],]
    Add the following parameter between applet tag.
    In this way, question file is unnecessary.
    <param name="data" value="
    4,5,,7,9,2,,8,6,]
    9,6,,,4,,,2,3,]
    ,,1,,8,,4,,,]
    7,,,6,,4,,,1,]
    6,2,4,,1,,3,7,9,]
    8,,,9,,7,,,2,]
    ,,6,,5,,2,,,]
    3,4,,,6,,,1,8,]
    5,8,,1,7,3,,6,4,]
    ],],],],],],],],],]
    ">

    return


    5. How to show unnormal type(combination,diagonal)

    combination

    There are two additonal designations in question file.

    • Input "0" in all cells which do not contain in question.
    • Add "[" at the head of left-up corner of earch combinated normal question.


    diagonal

    Add the following parameter between applet tag.
    (Default value is "off".)

    <param name="diagonal" value="on">

    A B C D E F G H I J K L M
    1 [
    2

    6


    0 0 0 ]
    2



    5
    1

    0 0 0 ]
    3 5

    2


    9
    0 0 0 ]
    4

    3 1



    4 0 0 0 ]
    5
    5

    9

    3
    0 0 0 ]
    6 8



    7 6

    0 0 0 ]
    7
    4
    [
    5

    9


    ]
    8

    1
    2

    8
    1

    ]
    9


    3

    2


    6
    ]
    10 0 0 0

    3 8



    5 ]
    11 0 0 0
    9

    6

    4
    ]
    12 0 0 0 5



    1 6

    ]
    13 0 0 0
    7


    2

    9 ]
    14 0 0 0

    1
    7



    ]
    15 0 0 0


    6

    8

    ]
    16 ] ] ] ] ] ] ] ] ] ] ] ] ]
    (SUDOKU questions No.70)

    return


    6. Omission of additonal functions(hint,note,analysis)

    To omit each function, add the following parameter.
    (Default value is "on".) ---- omission samples

    analysis
    <param name="answer" value="off">

    hint 1
    <param name="hint1" value="off">

    hint 2
    <param name="hint2" value="off">

    return


    7. How to change language

    You can change language used in this program.
    Make a language file and add the following parameter between applet tag.
    (Default language is Japanese.)

    <param name="languagefile" value="[language file path]">

    Language file is a text file which signature all used sentences in this program.
    Open "english.txt", change sentences and save on different name.

    return


    Version infomation

    2006/1 version 1.3 2005/1 version 1.2 2002/12 version 1.1 2002/11 version 1.0

    Takana Factory(http://www.takana.info/)