yacht.html
2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<html>
<head>
<title>yacht dice</title>
</head>
<script src="yacht.js"></script>
<body>
본 페이지는 Nintendo의 "51 Worldwide Games"의 Yacht Dice의 확률을 보여주는 페이지입니다.<br>
0은 주사위를 굴리는 것으로, 1~6은 숫자를 고정하는 것으로 간주합니다.<br>
<input type="number" id="d1", min="0" max="6" value="0">
<input type="number" id="d2", min="0" max="6" value="0">
<input type="number" id="d3", min="0" max="6" value="0">
<input type="number" id="d4", min="0" max="6" value="0">
<input type="number" id="d5", min="0" max="6" value="0">
<input type="button" onclick=calcP() value="Roll!">
<table border="2">
<tr align="center">
<td>Categories</td>
<td>n = 1</td>
<td>n = 2</td>
<td>n = 3</td>
<td>n = 4</td>
<td>n = 5</td>
</tr>
<tr align="center">
<td>Aces</td>
<td id="ace_1"></td>
<td id="ace_2"></td>
<td id="ace_3"></td>
<td id="ace_4"></td>
<td id="ace_5"></td>
</tr>
<tr align="center">
<td>Dueces</td>
<td id="duece_1"></td>
<td id="duece_2"></td>
<td id="duece_3"></td>
<td id="duece_4"></td>
<td id="duece_5"></td>
</tr>
<tr align="center">
<td>Threes</td>
<td id="three_1"></td>
<td id="three_2"></td>
<td id="three_3"></td>
<td id="three_4"></td>
<td id="three_5"></td>
</tr>
<tr align="center">
<td>Fours</td>
<td id="four_1"></td>
<td id="four_2"></td>
<td id="four_3"></td>
<td id="four_4"></td>
<td id="four_5"></td>
</tr>
<tr align="center">
<td>Fives</td>
<td id="five_1"></td>
<td id="five_2"></td>
<td id="five_3"></td>
<td id="five_4"></td>
<td id="five_5"></td>
</tr>
<tr align="center">
<td>Sixes</td>
<td id="six_1"></td>
<td id="six_2"></td>
<td id="six_3"></td>
<td id="six_4"></td>
<td id="six_5"></td>
</tr>
<tr align="center">
<td>4 of a Kind</td>
<td colspan="5" id="4kind"></td>
</tr>
<tr align="center">
<td>Full House</td>
<td colspan="5" id="full"></td>
</tr>
<tr align="center">
<td>Small Straight</td>
<td colspan="5" id="small"></td>
</tr>
<tr align="center">
<td>Large Straight</td>
<td colspan="5" id="large"></td>
</tr>
<tr align="center">
<td>Yacht</td>
<td colspan="5" id="yacht"></td>
</tr>
</table>
<br>
choice
<p id="choice"></p>
</body>
</html>