|
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
|
| ||||
|
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 | |||
| ||||
Downroad
"number_13.zip"(67.3KB)
Showable type(version 1.3)
- normal
(Size is optional. Rectangle is also able.)
- combination
- diagonal
Explanation
This program is JavaApplet,so you must edit web page(HTML document).
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]">
(above sample question)
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 ] ] ] ] ] ] ] ] ] ] To show answer from beginning, add "\" at the head of number.
(above sample question)
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 ] ] ] ] ] ] ] ] ] ]
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">
(SUDOKU questions No.70)
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 ] ] ] ] ] ] ] ] ] ] ] ] ]
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.32005/1 version 1.2
- realize to change language
- improve sentence and button arrangement
- realize to read question data from outer file
- adjust panel back color
2002/12 version 1.1
- realize to input by keyboard
- realize to move selected square by arrow key
- add "Data in/out frame"
- improve number paint
- change question data input form simply
- strengthen error check
2002/11 version 1.0
- add diagonal to showable type
- abolish size limit
- strengthen to recognize combination
- realize combination which isn't fit block
- realize to omit hint1 and hint2
- improve hint2 paint
- 9x9,16x16 and combination