Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오명준
/
probability_simulator
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오명준
2021-11-13 03:12:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
af19b5578f503e460274e6dcd6a0b859feeef611
af19b557
1 parent
f6297940
Add new sim 'Yacht dice'(js)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1102 additions
and
0 deletions
yacht.js
yacht.js
0 → 100644
View file @
af19b55
function
calcP
()
{
var
d1
=
document
.
getElementById
(
"d1"
).
valueAsNumber
;
var
d2
=
document
.
getElementById
(
"d2"
).
valueAsNumber
;
var
d3
=
document
.
getElementById
(
"d3"
).
valueAsNumber
;
var
d4
=
document
.
getElementById
(
"d4"
).
valueAsNumber
;
var
d5
=
document
.
getElementById
(
"d5"
).
valueAsNumber
;
var
count
=
[
0
,
0
,
0
,
0
,
0
,
0
,
0
];
var
sum
=
d1
+
d2
+
d3
+
d4
+
d5
;
count
[
d1
]
+=
1
;
count
[
d2
]
+=
1
;
count
[
d3
]
+=
1
;
count
[
d4
]
+=
1
;
count
[
d5
]
+=
1
;
rollNum
=
count
[
0
];
if
(
rollNum
==
5
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"40.1878%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"16.0751%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"3.2150%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"0.3215%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"0.0129%"
;
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"40.1878%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"16.0751%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"3.2150%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"0.3215%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"0.0129%"
;
document
.
getElementById
(
"three_1"
).
innerHTML
=
"40.1878%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"16.0751%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"3.2150%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"0.3215%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"0.0129%"
;
document
.
getElementById
(
"four_1"
).
innerHTML
=
"40.1878%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"16.0751%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"3.2150%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"0.3215%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"0.0129%"
;
document
.
getElementById
(
"five_1"
).
innerHTML
=
"40.1878%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"16.0751%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"3.2150%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"0.3215%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"0.0129%"
;
document
.
getElementById
(
"six_1"
).
innerHTML
=
"40.1878%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"16.0751%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"3.2150%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"0.3215%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"0.0129%"
;
document
.
getElementById
(
"4kind"
).
innerHTML
=
"2.0062%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"3.9352%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"15.4321%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"3.0864%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0772%"
;
document
.
getElementById
(
"choice"
).
innerHTML
=
"5 : 0.0129%<br>"
+
"6 : 0.0643%<br>"
+
"7 : 0.1929%<br>"
+
"8 : 0.4501%<br>"
+
"9 : 0.9002%<br>"
+
"10 : 1.6204%<br>"
+
"11 : 2.6363%<br>"
+
"12 : 3.9223%<br>"
+
"13 : 5.4012%<br>"
+
"14 : 6.9444%<br>"
+
"15 : 8.3719%<br>"
+
"16 : 9.4522%<br>"
+
"17 : 10.0309%<br>"
+
"18 : 10.0309%<br>"
+
"19 : 9.4522%<br>"
+
"20 : 8.3719%<br>"
+
"21 : 6.9444%<br>"
+
"22 : 5.4012%<br>"
+
"23 : 3.9223%<br>"
+
"24 : 2.6363%<br>"
+
"25 : 1.6204%<br>"
+
"26 : 0.9002%<br>"
+
"27 : 0.4501%<br>"
+
"28 : 0.1929%<br>"
+
"29 : 0.0643%<br>"
+
"30 : 0.0129%"
;
}
else
if
(
rollNum
==
4
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"0.0772%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"0.0772%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_1"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"0.0772%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_1"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"0.0772%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_1"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"0.0772%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_1"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"0.0772%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"0.0000%"
;
if
(
count
[
1
]
==
1
||
count
[
6
]
==
1
)
{
if
(
count
[
1
]
==
1
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"48.2253%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"0.0772%"
;
}
else
{
document
.
getElementById
(
"six_1"
).
innerHTML
=
"48.2253%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"0.0772%"
;
}
document
.
getElementById
(
"4kind"
).
innerHTML
=
"2.0062%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"3.9352%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"10.1852%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"1.8519%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0772%"
;
}
else
if
(
count
[
2
]
==
1
||
count
[
5
]
==
1
)
{
if
(
count
[
2
]
==
1
)
{
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"48.2253%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"0.0772%"
;
}
else
{
document
.
getElementById
(
"five_1"
).
innerHTML
=
"48.2253%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"0.0772%"
;
}
document
.
getElementById
(
"4kind"
).
innerHTML
=
"2.0062%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"3.9352%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"14.8148%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"3.7037%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0772%"
;
}
else
if
(
count
[
3
]
==
1
||
count
[
4
]
==
1
)
{
if
(
count
[
3
]
==
1
)
{
document
.
getElementById
(
"three_1"
).
innerHTML
=
"48.2253%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"0.0772%"
;
}
else
{
document
.
getElementById
(
"four_1"
).
innerHTML
=
"48.2253%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"38.5802%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"11.5741%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"1.5432%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"0.0772%"
;
}
document
.
getElementById
(
"4kind"
).
innerHTML
=
"2.0062%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"3.9352%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"21.2963%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"3.7037%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0772%"
;
}
document
.
getElementById
(
"choice"
).
innerHTML
=
parseInt
(
sum
+
4
)
+
" : 0.0772%<br>"
+
parseInt
(
sum
+
5
)
+
" : 0.3086%<br>"
+
parseInt
(
sum
+
6
)
+
" : 0.7716%<br>"
+
parseInt
(
sum
+
7
)
+
" : 1.5432%<br>"
+
parseInt
(
sum
+
8
)
+
" : 2.7006%<br>"
+
parseInt
(
sum
+
9
)
+
" : 4.3210%<br>"
+
parseInt
(
sum
+
10
)
+
" : 6.1728%<br>"
+
parseInt
(
sum
+
11
)
+
" : 8.0247%<br>"
+
parseInt
(
sum
+
12
)
+
" : 9.6451%<br>"
+
parseInt
(
sum
+
13
)
+
" : 10.8025%<br>"
+
parseInt
(
sum
+
14
)
+
" : 11.2654%<br>"
+
parseInt
(
sum
+
15
)
+
" : 10.8025%<br>"
+
parseInt
(
sum
+
16
)
+
" : 9.6451%<br>"
+
parseInt
(
sum
+
17
)
+
" : 8.0247%<br>"
+
parseInt
(
sum
+
18
)
+
" : 6.1728%<br>"
+
parseInt
(
sum
+
19
)
+
" : 4.3210%<br>"
+
parseInt
(
sum
+
20
)
+
" : 2.7006%<br>"
+
parseInt
(
sum
+
21
)
+
" : 1.5432%<br>"
+
parseInt
(
sum
+
22
)
+
" : 0.7716%<br>"
+
parseInt
(
sum
+
23
)
+
" : 0.3086%<br>"
+
parseInt
(
sum
+
24
)
+
" : 0.0772%"
;
}
else
if
(
rollNum
==
3
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_1"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_1"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_1"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_1"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"0.0000%"
;
if
(
count
[
1
]
==
1
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
2
]
==
1
)
{
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
3
]
==
1
)
{
document
.
getElementById
(
"three_1"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
4
]
==
1
)
{
document
.
getElementById
(
"four_1"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
5
]
==
1
)
{
document
.
getElementById
(
"five_1"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
6
]
==
1
)
{
document
.
getElementById
(
"six_1"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"0.4630%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
1
]
==
2
||
count
[
6
]
==
2
)
{
if
(
count
[
1
]
==
2
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"0.4630%"
;
}
else
{
document
.
getElementById
(
"six_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"0.4630%"
;
}
document
.
getElementById
(
"4kind"
).
innerHTML
=
"7.4074%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"9.7222%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.4630%"
;
}
else
if
(
count
[
2
]
==
2
||
count
[
5
]
==
2
)
{
if
(
count
[
2
]
==
2
)
{
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"0.4630%"
;
}
else
{
document
.
getElementById
(
"five_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"0.4630%"
;
}
document
.
getElementById
(
"4kind"
).
innerHTML
=
"7.4074%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"9.7222%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.4630%"
;
}
else
if
(
count
[
3
]
==
2
||
count
[
4
]
==
2
)
{
if
(
count
[
3
]
==
2
)
{
document
.
getElementById
(
"three_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"0.4630%"
;
}
else
{
document
.
getElementById
(
"four_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"57.8704%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"34.7222%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"6.9444%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"0.4630%"
;
}
document
.
getElementById
(
"4kind"
).
innerHTML
=
"7.4074%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"9.7222%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"8.3333%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.4630%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
2
]
==
1
||
count
[
5
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.9259%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"13.8889%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
3
]
==
1
||
count
[
1
]
==
1
&&
count
[
4
]
==
1
||
count
[
3
]
==
1
&&
count
[
6
]
==
1
||
count
[
4
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.9259%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"16.6667%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
5
]
==
1
||
count
[
2
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.9259%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.9259%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
2
]
==
1
&&
count
[
3
]
==
1
||
count
[
2
]
==
1
&&
count
[
4
]
==
1
||
count
[
3
]
==
1
&&
count
[
5
]
==
1
||
count
[
4
]
==
1
&&
count
[
5
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.9259%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"25.0000%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
2
]
==
1
&&
count
[
5
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.9259%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"13.8889%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
3
]
==
1
&&
count
[
4
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.9259%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"36.1111%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
document
.
getElementById
(
"choice"
).
innerHTML
=
parseInt
(
sum
+
3
)
+
" : 0.4630%<br>"
+
parseInt
(
sum
+
4
)
+
" : 1.3889%<br>"
+
parseInt
(
sum
+
5
)
+
" : 2.7778%<br>"
+
parseInt
(
sum
+
6
)
+
" : 4.6296%<br>"
+
parseInt
(
sum
+
7
)
+
" : 6.9444%<br>"
+
parseInt
(
sum
+
8
)
+
" : 9.7222%<br>"
+
parseInt
(
sum
+
9
)
+
" : 11.5741%<br>"
+
parseInt
(
sum
+
10
)
+
" : 12.5000%<br>"
+
parseInt
(
sum
+
11
)
+
" : 12.5000%<br>"
+
parseInt
(
sum
+
12
)
+
" : 11.5741%<br>"
+
parseInt
(
sum
+
13
)
+
" : 9.7222%<br>"
+
parseInt
(
sum
+
14
)
+
" : 6.9444%<br>"
+
parseInt
(
sum
+
15
)
+
" : 4.6296%<br>"
+
parseInt
(
sum
+
16
)
+
" : 2.7778%<br>"
+
parseInt
(
sum
+
17
)
+
" : 1.3889%<br>"
+
parseInt
(
sum
+
18
)
+
" : 0.4630%"
;
}
else
if
(
rollNum
==
2
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_1"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_1"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_1"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_1"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"0.0000%"
;
if
(
count
[
1
]
==
3
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"2.7778%"
;
}
else
if
(
count
[
1
]
==
2
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
)
{
document
.
getElementById
(
"ace_1"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
2
]
==
3
)
{
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"2.7778%"
;
}
else
if
(
count
[
2
]
==
2
)
{
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
2
]
==
1
)
{
document
.
getElementById
(
"duece_1"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
3
]
==
3
)
{
document
.
getElementById
(
"three_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"2.7778%"
;
}
else
if
(
count
[
3
]
==
2
)
{
document
.
getElementById
(
"three_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
3
]
==
1
)
{
document
.
getElementById
(
"three_1"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
4
]
==
3
)
{
document
.
getElementById
(
"four_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"2.7778%"
;
}
else
if
(
count
[
4
]
==
2
)
{
document
.
getElementById
(
"four_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
4
]
==
1
)
{
document
.
getElementById
(
"four_1"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
5
]
==
3
)
{
document
.
getElementById
(
"five_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"2.7778%"
;
}
else
if
(
count
[
5
]
==
2
)
{
document
.
getElementById
(
"five_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
5
]
==
1
)
{
document
.
getElementById
(
"five_1"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
6
]
==
3
)
{
document
.
getElementById
(
"six_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"2.7778%"
;
}
else
if
(
count
[
6
]
==
2
)
{
document
.
getElementById
(
"six_1"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
6
]
==
1
)
{
document
.
getElementById
(
"six_1"
).
innerHTML
=
"69.4444%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
"27.7778%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
"0.0000%"
;
}
if
(
count
[
1
]
==
3
||
count
[
2
]
==
3
||
count
[
3
]
==
3
||
count
[
4
]
==
3
||
count
[
5
]
==
3
||
count
[
6
]
==
3
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"30.5556%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"16.6667%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"2.7778%"
;
}
else
if
(
count
[
1
]
==
2
&&
count
[
2
]
==
1
||
count
[
1
]
==
2
&&
count
[
3
]
==
1
||
count
[
1
]
==
2
&&
count
[
4
]
==
1
||
count
[
1
]
==
1
&&
count
[
2
]
==
2
||
count
[
1
]
==
1
&&
count
[
3
]
==
2
||
count
[
1
]
==
1
&&
count
[
4
]
==
2
||
count
[
2
]
==
2
&&
count
[
5
]
==
1
||
count
[
2
]
==
1
&&
count
[
5
]
==
2
||
count
[
3
]
==
2
&&
count
[
6
]
==
1
||
count
[
3
]
==
1
&&
count
[
6
]
==
2
||
count
[
4
]
==
2
&&
count
[
6
]
==
1
||
count
[
4
]
==
1
&&
count
[
6
]
==
2
||
count
[
5
]
==
2
&&
count
[
6
]
==
1
||
count
[
5
]
==
1
&&
count
[
6
]
==
2
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"8.3333%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
2
&&
count
[
5
]
==
1
||
count
[
1
]
==
2
&&
count
[
6
]
==
1
||
count
[
1
]
==
1
&&
count
[
5
]
==
2
||
count
[
1
]
==
1
&&
count
[
6
]
==
2
||
count
[
2
]
==
2
&&
count
[
6
]
==
1
||
count
[
2
]
==
1
&&
count
[
6
]
==
2
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"8.3333%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
2
]
==
1
&&
count
[
3
]
==
1
||
count
[
1
]
==
1
&&
count
[
2
]
==
1
&&
count
[
4
]
==
1
||
count
[
3
]
==
1
&&
count
[
5
]
==
1
&&
count
[
6
]
==
1
||
count
[
4
]
==
1
&&
count
[
5
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"30.5556%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
2
]
==
1
&&
count
[
5
]
==
1
||
count
[
2
]
==
1
&&
count
[
5
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
2
]
==
1
&&
count
[
6
]
==
1
||
count
[
1
]
==
1
&&
count
[
5
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
3
]
==
1
&&
count
[
4
]
==
1
||
count
[
3
]
==
1
&&
count
[
4
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"36.1111%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
3
]
==
1
&&
count
[
5
]
==
1
||
count
[
1
]
==
1
&&
count
[
4
]
==
1
&&
count
[
5
]
==
1
||
count
[
2
]
==
1
&&
count
[
3
]
==
1
&&
count
[
6
]
==
1
||
count
[
2
]
==
1
&&
count
[
4
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"11.1111%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"5.5556%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
1
]
==
1
&&
count
[
3
]
==
1
&&
count
[
6
]
==
1
||
count
[
1
]
==
1
&&
count
[
4
]
==
1
&&
count
[
6
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"11.1111%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
2
]
==
2
&&
count
[
3
]
==
1
||
count
[
2
]
==
2
&&
count
[
4
]
==
1
||
count
[
2
]
==
1
&&
count
[
3
]
==
2
||
count
[
2
]
==
1
&&
count
[
4
]
==
2
||
count
[
3
]
==
2
&&
count
[
5
]
==
1
||
count
[
3
]
==
1
&&
count
[
5
]
==
2
||
count
[
4
]
==
2
&&
count
[
5
]
==
1
||
count
[
4
]
==
1
&&
count
[
5
]
==
2
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"8.3333%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"11.1111%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
2
]
==
1
&&
count
[
3
]
==
1
&&
count
[
4
]
==
1
||
count
[
3
]
==
1
&&
count
[
4
]
==
1
&&
count
[
5
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"55.5556%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"11.1111%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
2
]
==
1
&&
count
[
3
]
==
1
&&
count
[
5
]
==
1
||
count
[
2
]
==
1
&&
count
[
4
]
==
1
&&
count
[
5
]
==
1
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"30.5556%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"11.1111%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
else
if
(
count
[
3
]
==
2
&&
count
[
4
]
==
1
||
count
[
3
]
==
1
&&
count
[
4
]
==
2
)
{
document
.
getElementById
(
"4kind"
).
innerHTML
=
"2.7778%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
"8.3333%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
"16.6667%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
"0.0000%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
"0.0000%"
;
}
document
.
getElementById
(
"choice"
).
innerHTML
=
parseInt
(
sum
+
2
)
+
" : 2.7778%<br>"
+
parseInt
(
sum
+
3
)
+
" : 5.5556%<br>"
+
parseInt
(
sum
+
4
)
+
" : 8.3333%<br>"
+
parseInt
(
sum
+
5
)
+
" : 11.1111%<br>"
+
parseInt
(
sum
+
6
)
+
" : 13.8889%<br>"
+
parseInt
(
sum
+
7
)
+
" : 16.6667%<br>"
+
parseInt
(
sum
+
8
)
+
" : 13.8889%<br>"
+
parseInt
(
sum
+
9
)
+
" : 11.1111%<br>"
+
parseInt
(
sum
+
10
)
+
" : 8.3333%<br>"
+
parseInt
(
sum
+
11
)
+
" : 5.5556%<br>"
+
parseInt
(
sum
+
12
)
+
" : 2.7778%"
;
}
else
if
(
rollNum
==
1
)
{
var
aceToSix
=
[[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
]];
var
made
=
[
0
,
0
,
0
,
0
,
0
];
for
(
var
i
=
1
;
i
<=
6
;
i
++
)
{
count
[
i
]
+=
1
;
if
(
count
[
1
]
==
1
)
aceToSix
[
0
][
0
]
+=
1
;
else
if
(
count
[
1
]
==
2
)
aceToSix
[
0
][
1
]
+=
1
;
else
if
(
count
[
1
]
==
3
)
aceToSix
[
0
][
2
]
+=
1
;
else
if
(
count
[
1
]
==
4
)
aceToSix
[
0
][
3
]
+=
1
;
else
if
(
count
[
1
]
==
5
)
aceToSix
[
0
][
4
]
+=
1
;
if
(
count
[
2
]
==
1
)
aceToSix
[
1
][
0
]
+=
1
;
else
if
(
count
[
2
]
==
2
)
aceToSix
[
1
][
1
]
+=
1
;
else
if
(
count
[
2
]
==
3
)
aceToSix
[
1
][
2
]
+=
1
;
else
if
(
count
[
2
]
==
4
)
aceToSix
[
1
][
3
]
+=
1
;
else
if
(
count
[
2
]
==
5
)
aceToSix
[
1
][
4
]
+=
1
;
if
(
count
[
3
]
==
1
)
aceToSix
[
2
][
0
]
+=
1
;
else
if
(
count
[
3
]
==
2
)
aceToSix
[
2
][
1
]
+=
1
;
else
if
(
count
[
3
]
==
3
)
aceToSix
[
2
][
2
]
+=
1
;
else
if
(
count
[
3
]
==
4
)
aceToSix
[
2
][
3
]
+=
1
;
else
if
(
count
[
3
]
==
5
)
aceToSix
[
2
][
4
]
+=
1
;
if
(
count
[
4
]
==
1
)
aceToSix
[
3
][
0
]
+=
1
;
else
if
(
count
[
4
]
==
2
)
aceToSix
[
3
][
1
]
+=
1
;
else
if
(
count
[
4
]
==
3
)
aceToSix
[
3
][
2
]
+=
1
;
else
if
(
count
[
4
]
==
4
)
aceToSix
[
3
][
3
]
+=
1
;
else
if
(
count
[
4
]
==
5
)
aceToSix
[
3
][
4
]
+=
1
;
if
(
count
[
5
]
==
1
)
aceToSix
[
4
][
0
]
+=
1
;
else
if
(
count
[
5
]
==
2
)
aceToSix
[
4
][
1
]
+=
1
;
else
if
(
count
[
5
]
==
3
)
aceToSix
[
4
][
2
]
+=
1
;
else
if
(
count
[
5
]
==
4
)
aceToSix
[
4
][
3
]
+=
1
;
else
if
(
count
[
5
]
==
5
)
aceToSix
[
4
][
4
]
+=
1
;
if
(
count
[
6
]
==
1
)
aceToSix
[
5
][
0
]
+=
1
;
else
if
(
count
[
6
]
==
2
)
aceToSix
[
5
][
1
]
+=
1
;
else
if
(
count
[
6
]
==
3
)
aceToSix
[
5
][
2
]
+=
1
;
else
if
(
count
[
6
]
==
4
)
aceToSix
[
5
][
3
]
+=
1
;
else
if
(
count
[
6
]
==
5
)
aceToSix
[
5
][
4
]
+=
1
;
if
(
count
[
1
]
==
5
||
count
[
2
]
==
5
||
count
[
3
]
==
5
||
count
[
4
]
==
5
||
count
[
5
]
==
5
||
count
[
6
]
==
5
)
{
made
[
4
]
+=
1
;
}
if
(
count
[
1
]
>=
4
||
count
[
2
]
>=
4
||
count
[
3
]
>=
4
||
count
[
4
]
>=
4
||
count
[
5
]
>=
4
||
count
[
6
]
>=
4
)
{
made
[
0
]
+=
1
;
}
for
(
var
j
=
1
;
j
<
7
;
j
++
)
{
var
loop_escape
=
false
;
if
(
count
[
j
]
==
5
)
{
made
[
1
]
+=
1
;
loop_escape
=
true
;
}
else
if
(
count
[
j
]
==
3
)
{
for
(
var
k
=
1
;
k
<
7
;
k
++
)
if
(
count
[
k
]
==
2
)
{
made
[
1
]
+=
1
;
loop_escape
=
true
;
break
;
}
}
if
(
loop_escape
)
break
;
}
if
(
count
[
1
]
==
1
&&
count
[
2
]
==
1
&&
count
[
3
]
==
1
&&
count
[
4
]
==
1
&&
count
[
5
]
==
1
||
count
[
2
]
==
1
&&
count
[
3
]
==
1
&&
count
[
4
]
==
1
&&
count
[
5
]
==
1
&&
count
[
6
]
==
1
)
made
[
3
]
+=
1
;
if
(
count
[
1
]
!=
0
&&
count
[
2
]
!=
0
&&
count
[
3
]
!=
0
&&
count
[
4
]
!=
0
||
count
[
2
]
!=
0
&&
count
[
3
]
!=
0
&&
count
[
4
]
!=
0
&&
count
[
5
]
!=
0
||
count
[
3
]
!=
0
&&
count
[
4
]
!=
0
&&
count
[
5
]
!=
0
&&
count
[
6
]
!=
0
)
made
[
2
]
+=
1
;
count
[
i
]
-=
1
;
}
document
.
getElementById
(
"ace_1"
).
innerHTML
=
(
aceToSix
[
0
][
0
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
(
aceToSix
[
0
][
1
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
(
aceToSix
[
0
][
2
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
(
aceToSix
[
0
][
3
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
(
aceToSix
[
0
][
4
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_1"
).
innerHTML
=
(
aceToSix
[
1
][
0
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
(
aceToSix
[
1
][
1
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
(
aceToSix
[
1
][
2
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
(
aceToSix
[
1
][
3
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
(
aceToSix
[
1
][
4
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_1"
).
innerHTML
=
(
aceToSix
[
2
][
0
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
(
aceToSix
[
2
][
1
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
(
aceToSix
[
2
][
2
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
(
aceToSix
[
2
][
3
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
(
aceToSix
[
2
][
4
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_1"
).
innerHTML
=
(
aceToSix
[
3
][
0
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
(
aceToSix
[
3
][
1
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
(
aceToSix
[
3
][
2
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
(
aceToSix
[
3
][
3
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
(
aceToSix
[
3
][
4
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_1"
).
innerHTML
=
(
aceToSix
[
4
][
0
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
(
aceToSix
[
4
][
1
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
(
aceToSix
[
4
][
2
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
(
aceToSix
[
4
][
3
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
(
aceToSix
[
4
][
4
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_1"
).
innerHTML
=
(
aceToSix
[
5
][
0
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
(
aceToSix
[
5
][
1
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
(
aceToSix
[
5
][
2
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
(
aceToSix
[
5
][
3
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
(
aceToSix
[
5
][
4
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"4kind"
).
innerHTML
=
(
made
[
0
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
(
made
[
1
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
(
made
[
2
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
(
made
[
3
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
(
made
[
4
]
*
100
/
6
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"choice"
).
innerHTML
=
parseInt
(
sum
+
1
)
+
" : 16.6667%<br>"
+
parseInt
(
sum
+
2
)
+
" : 16.6667%<br>"
+
parseInt
(
sum
+
3
)
+
" : 16.6667%<br>"
+
parseInt
(
sum
+
4
)
+
" : 16.6667%<br>"
+
parseInt
(
sum
+
5
)
+
" : 16.6667%<br>"
+
parseInt
(
sum
+
6
)
+
" : 16.6667%<br>"
;
}
else
if
(
rollNum
==
0
)
{
var
aceToSix
=
[[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
]];
var
made
=
[
0
,
0
,
0
,
0
,
0
];
if
(
count
[
1
]
==
1
)
aceToSix
[
0
][
0
]
+=
1
;
else
if
(
count
[
1
]
==
2
)
aceToSix
[
0
][
1
]
+=
1
;
else
if
(
count
[
1
]
==
3
)
aceToSix
[
0
][
2
]
+=
1
;
else
if
(
count
[
1
]
==
4
)
aceToSix
[
0
][
3
]
+=
1
;
else
if
(
count
[
1
]
==
5
)
aceToSix
[
0
][
4
]
+=
1
;
if
(
count
[
2
]
==
1
)
aceToSix
[
1
][
0
]
+=
1
;
else
if
(
count
[
2
]
==
2
)
aceToSix
[
1
][
1
]
+=
1
;
else
if
(
count
[
2
]
==
3
)
aceToSix
[
1
][
2
]
+=
1
;
else
if
(
count
[
2
]
==
4
)
aceToSix
[
1
][
3
]
+=
1
;
else
if
(
count
[
2
]
==
5
)
aceToSix
[
1
][
4
]
+=
1
;
if
(
count
[
3
]
==
1
)
aceToSix
[
2
][
0
]
+=
1
;
else
if
(
count
[
3
]
==
2
)
aceToSix
[
2
][
1
]
+=
1
;
else
if
(
count
[
3
]
==
3
)
aceToSix
[
2
][
2
]
+=
1
;
else
if
(
count
[
3
]
==
4
)
aceToSix
[
2
][
3
]
+=
1
;
else
if
(
count
[
3
]
==
5
)
aceToSix
[
2
][
4
]
+=
1
;
if
(
count
[
4
]
==
1
)
aceToSix
[
3
][
0
]
+=
1
;
else
if
(
count
[
4
]
==
2
)
aceToSix
[
3
][
1
]
+=
1
;
else
if
(
count
[
4
]
==
3
)
aceToSix
[
3
][
2
]
+=
1
;
else
if
(
count
[
4
]
==
4
)
aceToSix
[
3
][
3
]
+=
1
;
else
if
(
count
[
4
]
==
5
)
aceToSix
[
3
][
4
]
+=
1
;
if
(
count
[
5
]
==
1
)
aceToSix
[
4
][
0
]
+=
1
;
else
if
(
count
[
5
]
==
2
)
aceToSix
[
4
][
1
]
+=
1
;
else
if
(
count
[
5
]
==
3
)
aceToSix
[
4
][
2
]
+=
1
;
else
if
(
count
[
5
]
==
4
)
aceToSix
[
4
][
3
]
+=
1
;
else
if
(
count
[
5
]
==
5
)
aceToSix
[
4
][
4
]
+=
1
;
if
(
count
[
6
]
==
1
)
aceToSix
[
5
][
0
]
+=
1
;
else
if
(
count
[
6
]
==
2
)
aceToSix
[
5
][
1
]
+=
1
;
else
if
(
count
[
6
]
==
3
)
aceToSix
[
5
][
2
]
+=
1
;
else
if
(
count
[
6
]
==
4
)
aceToSix
[
5
][
3
]
+=
1
;
else
if
(
count
[
6
]
==
5
)
aceToSix
[
5
][
4
]
+=
1
;
if
(
count
[
1
]
==
5
||
count
[
2
]
==
5
||
count
[
3
]
==
5
||
count
[
4
]
==
5
||
count
[
5
]
==
5
||
count
[
6
]
==
5
)
{
made
[
4
]
+=
1
;
}
if
(
count
[
1
]
>=
4
||
count
[
2
]
>=
4
||
count
[
3
]
>=
4
||
count
[
4
]
>=
4
||
count
[
5
]
>=
4
||
count
[
6
]
>=
4
)
{
made
[
0
]
+=
1
;
}
for
(
var
j
=
1
;
j
<
7
;
j
++
)
{
var
loop_escape
=
false
;
if
(
count
[
j
]
==
5
)
{
made
[
1
]
+=
1
;
loop_escape
=
true
;
}
else
if
(
count
[
j
]
==
3
)
{
for
(
var
k
=
1
;
k
<
7
;
k
++
)
if
(
count
[
k
]
==
2
)
{
made
[
1
]
+=
1
;
loop_escape
=
true
;
break
;
}
}
if
(
loop_escape
)
break
;
}
if
(
count
[
1
]
==
1
&&
count
[
2
]
==
1
&&
count
[
3
]
==
1
&&
count
[
4
]
==
1
&&
count
[
5
]
==
1
||
count
[
2
]
==
1
&&
count
[
3
]
==
1
&&
count
[
4
]
==
1
&&
count
[
5
]
==
1
&&
count
[
6
]
==
1
)
made
[
3
]
+=
1
;
if
(
count
[
1
]
!=
0
&&
count
[
2
]
!=
0
&&
count
[
3
]
!=
0
&&
count
[
4
]
!=
0
||
count
[
2
]
!=
0
&&
count
[
3
]
!=
0
&&
count
[
4
]
!=
0
&&
count
[
5
]
!=
0
||
count
[
3
]
!=
0
&&
count
[
4
]
!=
0
&&
count
[
5
]
!=
0
&&
count
[
6
]
!=
0
)
made
[
2
]
+=
1
;
document
.
getElementById
(
"ace_1"
).
innerHTML
=
(
aceToSix
[
0
][
0
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"ace_2"
).
innerHTML
=
(
aceToSix
[
0
][
1
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"ace_3"
).
innerHTML
=
(
aceToSix
[
0
][
2
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"ace_4"
).
innerHTML
=
(
aceToSix
[
0
][
3
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"ace_5"
).
innerHTML
=
(
aceToSix
[
0
][
4
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_1"
).
innerHTML
=
(
aceToSix
[
1
][
0
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_2"
).
innerHTML
=
(
aceToSix
[
1
][
1
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_3"
).
innerHTML
=
(
aceToSix
[
1
][
2
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_4"
).
innerHTML
=
(
aceToSix
[
1
][
3
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"duece_5"
).
innerHTML
=
(
aceToSix
[
1
][
4
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_1"
).
innerHTML
=
(
aceToSix
[
2
][
0
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_2"
).
innerHTML
=
(
aceToSix
[
2
][
1
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_3"
).
innerHTML
=
(
aceToSix
[
2
][
2
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_4"
).
innerHTML
=
(
aceToSix
[
2
][
3
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"three_5"
).
innerHTML
=
(
aceToSix
[
2
][
4
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_1"
).
innerHTML
=
(
aceToSix
[
3
][
0
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_2"
).
innerHTML
=
(
aceToSix
[
3
][
1
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_3"
).
innerHTML
=
(
aceToSix
[
3
][
2
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_4"
).
innerHTML
=
(
aceToSix
[
3
][
3
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"four_5"
).
innerHTML
=
(
aceToSix
[
3
][
4
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_1"
).
innerHTML
=
(
aceToSix
[
4
][
0
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_2"
).
innerHTML
=
(
aceToSix
[
4
][
1
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_3"
).
innerHTML
=
(
aceToSix
[
4
][
2
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_4"
).
innerHTML
=
(
aceToSix
[
4
][
3
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"five_5"
).
innerHTML
=
(
aceToSix
[
4
][
4
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_1"
).
innerHTML
=
(
aceToSix
[
5
][
0
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_2"
).
innerHTML
=
(
aceToSix
[
5
][
1
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_3"
).
innerHTML
=
(
aceToSix
[
5
][
2
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_4"
).
innerHTML
=
(
aceToSix
[
5
][
3
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"six_5"
).
innerHTML
=
(
aceToSix
[
5
][
4
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"4kind"
).
innerHTML
=
(
made
[
0
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"full"
).
innerHTML
=
(
made
[
1
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"small"
).
innerHTML
=
(
made
[
2
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"large"
).
innerHTML
=
(
made
[
3
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"yacht"
).
innerHTML
=
(
made
[
4
]
*
100
).
toFixed
(
4
)
+
"%"
;
document
.
getElementById
(
"choice"
).
innerHTML
=
sum
+
" : 16.6667%<br>"
;
}
}
\ No newline at end of file
Please
register
or
login
to post a comment