-
Notifications
You must be signed in to change notification settings - Fork 0
/
lw.html
138 lines (138 loc) · 19.6 KB
/
lw.html
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<html> <!-- <head manifest="/18xx.manifest"> -->
<head>
<link rel="stylesheet" type="text/css" href="lw.css">
<script src="lw.js"></script>
<title>loco werks</title>
</head>
<body>
<span id="actors">
<table id="board" style="float:left" border="1">
<tr> <td>
<td><th style="color:green" >green 1</th> <th style="color:red" >red 1</th> <th style="color:gold" >yellow 1</th> <th style="color:blue" >blue 1</th> <th style="color:green" >green 2</th> <th style="color:red" >red 2</th> <th style="color:gold" >yellow 2</th> <th style="color:green" >green 3</th> <th style="color:blue" >blue 2</th> <th style="color:red" >red 3</th> <th style="color:green" >green 4</th> <th style="color:gold" >yellow 3</th> <th style="color:red" >red 4</th> <th style="color:green" >green 5</th> </tr>
<tr> <th>dice <td>
<td><div class='green' id='c1_dice' ><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='red' id='c2_dice' ><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='yellow' id='c3_dice' ><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='blue' id='c4_dice' ><span class='die nodie'>X</span> </div>
<td><div class='green' id='c5_dice' ><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='red' id='c6_dice' ><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='yellow' id='c7_dice' ><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='green' id='c8_dice' ><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='blue' id='c9_dice' ><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='red' id='c10_dice'><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='green' id='c11_dice'><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span></div>
<td><div class='yellow' id='c12_dice'><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='red' id='c13_dice'><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span> </div>
<td><div class='green' id='c14_dice'><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span><span class='die nodie'>X</span></div>
</tr>
<tr> <th>factories <td>
<td><span id='c1_co' >4</span>/4
<td><span id='c2_co' >3</span>/3
<td><span id='c3_co' >2</span>/2
<td><span id='c4_co' >1</span>/1
<td><span id='c5_co' >4</span>/4
<td><span id='c6_co' >3</span>/3
<td><span id='c7_co' >2</span>/2
<td><span id='c8_co' >4</span>/4
<td><span id='c9_co' >2</span>/2
<td><span id='c10_co'>3</span>/3
<td><span id='c11_co'>4</span>/4
<td><span id='c12_co'>3</span>/3
<td><span id='c13_co'>4</span>/4
<td><span id='c14_co'>4</span>/4
</tr>
<tr id='costs'> <th>produce/capacity/purchase<td>
<td> 1/ 2/ 4
<td> 2/ 4/ 8
<td> 3/ 6/12
<td> 4/ 8/16
<td> 5/10/20
<td> 6/12/24
<td> 7/14/28
<td> 8/16/32
<td> 9/18/36
<td>10/20/40
<td>11/22/44
<td>12/24/48
<td>13/26/52
<td>14/28/56
</tr>
<tr id='p0'>
<th><input id='p0_name'> <button id='p0_done' onClick='done(0)' hidden >Done</button>
<td><span id="p0_cash">14</span><span id='p0_spend'></span>
<td><button id="p0_c1_buy" class='p0 buy' onClick="buy_factory( 1,0);" hidden>Purchase</button> <span id='p0_c1_ccap' hidden>0</span><input type="number" id="p0_c1_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 1,0)' hidden>
<td><button id="p0_c2_buy" class='p0 buy' onClick="buy_factory( 2,0);" hidden>Purchase</button> <span id='p0_c2_ccap' hidden>0</span><input type="number" id="p0_c2_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 2,0)' hidden>
<td><button id="p0_c3_buy" class='p0 buy' onClick="buy_factory( 3,0);" hidden>Purchase</button> <span id='p0_c3_ccap' hidden>0</span><input type="number" id="p0_c3_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 3,0)' hidden>
<td><button id="p0_c4_buy" class='p0 buy' onClick="buy_factory( 4,0);" hidden>Purchase</button> <span id='p0_c4_ccap' hidden>0</span><input type="number" id="p0_c4_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 4,0)' hidden>
<td><button id="p0_c5_buy" class='p0 buy' onClick="buy_factory( 5,0);" hidden>Purchase</button> <span id='p0_c5_ccap' hidden>0</span><input type="number" id="p0_c5_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 5,0)' hidden>
<td><button id="p0_c6_buy" class='p0 buy' onClick="buy_factory( 6,0);" hidden>Purchase</button> <span id='p0_c6_ccap' hidden>0</span><input type="number" id="p0_c6_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 6,0)' hidden>
<td><button id="p0_c7_buy" class='p0 buy' onClick="buy_factory( 7,0);" hidden>Purchase</button> <span id='p0_c7_ccap' hidden>0</span><input type="number" id="p0_c7_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 7,0)' hidden>
<td><button id="p0_c8_buy" class='p0 buy' onClick="buy_factory( 8,0);" hidden>Purchase</button> <span id='p0_c8_ccap' hidden>0</span><input type="number" id="p0_c8_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 8,0)' hidden>
<td><button id="p0_c9_buy" class='p0 buy' onClick="buy_factory( 9,0);" hidden>Purchase</button> <span id='p0_c9_ccap' hidden>0</span><input type="number" id="p0_c9_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 9,0)' hidden>
<td><button id="p0_c10_buy" class='p0 buy' onClick="buy_factory(10,0);" hidden>Purchase</button> <span id='p0_c10_ccap' hidden>0</span><input type="number" id="p0_c10_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(10,0)' hidden>
<td><button id="p0_c11_buy" class='p0 buy' onClick="buy_factory(11,0);" hidden>Purchase</button> <span id='p0_c11_ccap' hidden>0</span><input type="number" id="p0_c11_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(11,0)' hidden>
<td><button id="p0_c12_buy" class='p0 buy' onClick="buy_factory(12,0);" hidden>Purchase</button> <span id='p0_c12_ccap' hidden>0</span><input type="number" id="p0_c12_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(12,0)' hidden>
<td><button id="p0_c13_buy" class='p0 buy' onClick="buy_factory(13,0);" hidden>Purchase</button> <span id='p0_c13_ccap' hidden>0</span><input type="number" id="p0_c13_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(13,0)' hidden>
<td><button id="p0_c13_buy" class='p0 buy' onClick="buy_factory(14,0);" hidden>Purchase</button> <span id='p0_c14_ccap' hidden>0</span><input type="number" id="p0_c14_cap" class='p0 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(14,0)' hidden>
</tr>
<tr id='p1'>
<th><input id='p1_name'> <button id='p1_done' onClick='done(1)' hidden >Done</button>
<td><span id="p1_cash">14</span><span id='p1_spend'></span>
<td><button id="p1_c1_buy" class='p1 buy' onClick="buy_factory( 1,1);" hidden>Purchase</button> <span id='p1_c1_ccap' hidden>0</span><input type="number" id="p1_c1_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 1,1)' hidden>
<td><button id="p1_c2_buy" class='p1 buy' onClick="buy_factory( 2,1);" hidden>Purchase</button> <span id='p1_c2_ccap' hidden>0</span><input type="number" id="p1_c2_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 2,1)' hidden>
<td><button id="p1_c3_buy" class='p1 buy' onClick="buy_factory( 3,1);" hidden>Purchase</button> <span id='p1_c3_ccap' hidden>0</span><input type="number" id="p1_c3_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 3,1)' hidden>
<td><button id="p1_c4_buy" class='p1 buy' onClick="buy_factory( 4,1);" hidden>Purchase</button> <span id='p1_c4_ccap' hidden>0</span><input type="number" id="p1_c4_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 4,1)' hidden>
<td><button id="p1_c5_buy" class='p1 buy' onClick="buy_factory( 5,1);" hidden>Purchase</button> <span id='p1_c5_ccap' hidden>0</span><input type="number" id="p1_c5_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 5,1)' hidden>
<td><button id="p1_c6_buy" class='p1 buy' onClick="buy_factory( 6,1);" hidden>Purchase</button> <span id='p1_c6_ccap' hidden>0</span><input type="number" id="p1_c6_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 6,1)' hidden>
<td><button id="p1_c7_buy" class='p1 buy' onClick="buy_factory( 7,1);" hidden>Purchase</button> <span id='p1_c7_ccap' hidden>0</span><input type="number" id="p1_c7_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 7,1)' hidden>
<td><button id="p1_c8_buy" class='p1 buy' onClick="buy_factory( 8,1);" hidden>Purchase</button> <span id='p1_c8_ccap' hidden>0</span><input type="number" id="p1_c8_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 8,1)' hidden>
<td><button id="p1_c9_buy" class='p1 buy' onClick="buy_factory( 9,1);" hidden>Purchase</button> <span id='p1_c9_ccap' hidden>0</span><input type="number" id="p1_c9_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 9,1)' hidden>
<td><button id="p1_c10_buy" class='p1 buy' onClick="buy_factory(10,1);" hidden>Purchase</button> <span id='p1_c10_ccap' hidden>0</span><input type="number" id="p1_c10_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(10,1)' hidden>
<td><button id="p1_c11_buy" class='p1 buy' onClick="buy_factory(11,1);" hidden>Purchase</button> <span id='p1_c11_ccap' hidden>0</span><input type="number" id="p1_c11_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(11,1)' hidden>
<td><button id="p1_c12_buy" class='p1 buy' onClick="buy_factory(12,1);" hidden>Purchase</button> <span id='p1_c12_ccap' hidden>0</span><input type="number" id="p1_c12_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(12,1)' hidden>
<td><button id="p1_c13_buy" class='p1 buy' onClick="buy_factory(13,1);" hidden>Purchase</button> <span id='p1_c13_ccap' hidden>0</span><input type="number" id="p1_c13_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(13,1)' hidden>
<td><button id="p1_c14_buy" class='p1 buy' onClick="buy_factory(14,1);" hidden>Purchase</button> <span id='p1_c14_ccap' hidden>0</span><input type="number" id="p1_c14_cap" class='p1 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(14,1)' hidden>
</tr>
<tr id='p2'>
<th><input id='p2_name'> <button id='p2_done' onClick='done(2)' hidden >Done</button>
<td><span id="p2_cash">14</span><span id='p2_spend'></span>
<td><button id="p2_c1_buy" class='p2 buy' onClick="buy_factory( 1,2);" hidden>Purchase</button> <span id='p2_c1_ccap' hidden>0</span><input type="number" id="p2_c1_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 1,2)' hidden>
<td><button id="p2_c2_buy" class='p2 buy' onClick="buy_factory( 2,2);" hidden>Purchase</button> <span id='p2_c2_ccap' hidden>0</span><input type="number" id="p2_c2_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 2,2)' hidden>
<td><button id="p2_c3_buy" class='p2 buy' onClick="buy_factory( 3,2);" hidden>Purchase</button> <span id='p2_c3_ccap' hidden>0</span><input type="number" id="p2_c3_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 3,2)' hidden>
<td><button id="p2_c4_buy" class='p2 buy' onClick="buy_factory( 4,2);" hidden>Purchase</button> <span id='p2_c4_ccap' hidden>0</span><input type="number" id="p2_c4_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 4,2)' hidden>
<td><button id="p2_c5_buy" class='p2 buy' onClick="buy_factory( 5,2);" hidden>Purchase</button> <span id='p2_c5_ccap' hidden>0</span><input type="number" id="p2_c5_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 5,2)' hidden>
<td><button id="p2_c6_buy" class='p2 buy' onClick="buy_factory( 6,2);" hidden>Purchase</button> <span id='p2_c6_ccap' hidden>0</span><input type="number" id="p2_c6_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 6,2)' hidden>
<td><button id="p2_c7_buy" class='p2 buy' onClick="buy_factory( 7,2);" hidden>Purchase</button> <span id='p2_c7_ccap' hidden>0</span><input type="number" id="p2_c7_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 7,2)' hidden>
<td><button id="p2_c8_buy" class='p2 buy' onClick="buy_factory( 8,2);" hidden>Purchase</button> <span id='p2_c8_ccap' hidden>0</span><input type="number" id="p2_c8_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 8,2)' hidden>
<td><button id="p2_c9_buy" class='p2 buy' onClick="buy_factory( 9,2);" hidden>Purchase</button> <span id='p2_c9_ccap' hidden>0</span><input type="number" id="p2_c9_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 9,2)' hidden>
<td><button id="p2_c10_buy" class='p2 buy' onClick="buy_factory(10,2);" hidden>Purchase</button> <span id='p2_c10_ccap' hidden>0</span><input type="number" id="p2_c10_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(10,2)' hidden>
<td><button id="p2_c11_buy" class='p2 buy' onClick="buy_factory(11,2);" hidden>Purchase</button> <span id='p2_c11_ccap' hidden>0</span><input type="number" id="p2_c11_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(11,2)' hidden>
<td><button id="p2_c12_buy" class='p2 buy' onClick="buy_factory(12,2);" hidden>Purchase</button> <span id='p2_c12_ccap' hidden>0</span><input type="number" id="p2_c12_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(12,2)' hidden>
<td><button id="p2_c13_buy" class='p2 buy' onClick="buy_factory(13,2);" hidden>Purchase</button> <span id='p2_c13_ccap' hidden>0</span><input type="number" id="p2_c13_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(13,2)' hidden>
<td><button id="p2_c14_buy" class='p2 buy' onClick="buy_factory(14,2);" hidden>Purchase</button> <span id='p2_c14_ccap' hidden>0</span><input type="number" id="p2_c14_cap" class='p2 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(14,2)' hidden>
</tr>
<tr id='p3'>
<th><input id='p3_name'> <button id='p3_done' onClick='done(3)' hidden >Done</button>
<td><span id="p3_cash">14</span><span id='p3_spend'></span>
<td><button id="p3_c1_buy" class='p3 buy' onClick="buy_factory( 1,3);" hidden>Purchase</button> <span id='p3_c1_ccap' hidden>0</span><input type="number" id="p3_c1_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 1,3)' hidden>
<td><button id="p3_c2_buy" class='p3 buy' onClick="buy_factory( 2,3);" hidden>Purchase</button> <span id='p3_c2_ccap' hidden>0</span><input type="number" id="p3_c2_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 2,3)' hidden>
<td><button id="p3_c3_buy" class='p3 buy' onClick="buy_factory( 3,3);" hidden>Purchase</button> <span id='p3_c3_ccap' hidden>0</span><input type="number" id="p3_c3_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 3,3)' hidden>
<td><button id="p3_c4_buy" class='p3 buy' onClick="buy_factory( 4,3);" hidden>Purchase</button> <span id='p3_c4_ccap' hidden>0</span><input type="number" id="p3_c4_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 4,3)' hidden>
<td><button id="p3_c5_buy" class='p3 buy' onClick="buy_factory( 5,3);" hidden>Purchase</button> <span id='p3_c5_ccap' hidden>0</span><input type="number" id="p3_c5_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 5,3)' hidden>
<td><button id="p3_c6_buy" class='p3 buy' onClick="buy_factory( 6,3);" hidden>Purchase</button> <span id='p3_c6_ccap' hidden>0</span><input type="number" id="p3_c6_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 6,3)' hidden>
<td><button id="p3_c7_buy" class='p3 buy' onClick="buy_factory( 7,3);" hidden>Purchase</button> <span id='p3_c7_ccap' hidden>0</span><input type="number" id="p3_c7_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 7,3)' hidden>
<td><button id="p3_c8_buy" class='p3 buy' onClick="buy_factory( 8,3);" hidden>Purchase</button> <span id='p3_c8_ccap' hidden>0</span><input type="number" id="p3_c8_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 8,3)' hidden>
<td><button id="p3_c9_buy" class='p3 buy' onClick="buy_factory( 9,3);" hidden>Purchase</button> <span id='p3_c9_ccap' hidden>0</span><input type="number" id="p3_c9_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap( 9,3)' hidden>
<td><button id="p3_c10_buy" class='p3 buy' onClick="buy_factory(10,3);" hidden>Purchase</button> <span id='p3_c10_ccap' hidden>0</span><input type="number" id="p3_c10_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(10,3)' hidden>
<td><button id="p3_c11_buy" class='p3 buy' onClick="buy_factory(11,3);" hidden>Purchase</button> <span id='p3_c11_ccap' hidden>0</span><input type="number" id="p3_c11_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(11,3)' hidden>
<td><button id="p3_c12_buy" class='p3 buy' onClick="buy_factory(12,3);" hidden>Purchase</button> <span id='p3_c12_ccap' hidden>0</span><input type="number" id="p3_c12_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(12,3)' hidden>
<td><button id="p3_c13_buy" class='p3 buy' onClick="buy_factory(13,3);" hidden>Purchase</button> <span id='p3_c13_ccap' hidden>0</span><input type="number" id="p3_c13_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(13,3)' hidden>
<td><button id="p3_c14_buy" class='p3 buy' onClick="buy_factory(14,3);" hidden>Purchase</button> <span id='p3_c14_ccap' hidden>0</span><input type="number" id="p3_c14_cap" class='p3 cap' size='3' min='0' max="30" step="1" value="0" onChange='update_cap(14,3)' hidden>
</tr>
<tr id='p_end'>
</tr>
</table>
</span>
<br><button onClick='start();'>start</button>
</body>
</html>