오명준

Add new sim 'Yacht dice'(html)

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