/
Roulette.html
552 lines (542 loc) · 45.1 KB
/
Roulette.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
<!doctype html>
<html>
<head>
<title>Roulette</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
table
{
border:1px solid black;margin-left:auto;margin-right:auto;
}
th
{
border:1px solid black;
}
td
{
border:1px solid black;
}
</style>
</head>
<body style="margin:0;overflow:hidden;">
<svg id="TableDispSvg" width="500" height="500">
<text id="TableDispSvgTxt" x="-10" y="0" text-anchor="end">X</text>
<rect id="TableDispSvgScr" x="0" y="0" width="500" height="500" fill="rgb(0,0,0)" style="fill-opacity:0.0;" shape-rendering="optimizeSpeed"></rect>
</svg>
<div id="GameSelect" style="overflow:hidden; display:none; z-index:2; position:fixed; left:0px; top:0px; right:0px; bottom:0px; background-color:#008000; width:100%; height:100%; padding:0px; color:#FFFFFF; opacity: 1.00;">
<div style="display: table; overflow: hidden; width:100%; height:100%; border-collapse: separate; border-spacing: 3vmin; font-family: Arial, Helvetica, Verdana, sans-serif">
<div style="display: table-row;">
<div style="font-size: 6vmin; display: table-cell; text-align:center; vertical-align: middle; background-color:#00C000; " onclick="Init(0)">
<div>Classic roulette</div>
</div>
</div>
<div style="display: table-row;">
<div style="font-size: 6vmin; display: table-cell; text-align:center; vertical-align: middle; background-color:#00C000; " onclick="Init(1)">
<div>Mini roulette</div>
</div>
</div>
<div style="display: table-row;">
<div style="font-size: 6vmin; display: table-cell; text-align:center; vertical-align: middle; background-color:#00C000; " onclick="Init(2)">
<div>100 roulette</div>
</div>
</div>
<div style="display: table-row;">
<div style="font-size: 6vmin; display: table-cell; text-align:center; vertical-align: middle; background-color:#00C000; " onclick="DisplayHelp()">
<div>Help</div>
</div>
</div>
</div>
</div>
<div id="ProbScreen" style="overflow:scroll; display:none; z-index:2; position:fixed; left:0px; top:0px; right:0px; bottom:0px; background-color:#FFFFFF; width:100%; height:100%; padding:0px; color:black; opacity: 0.95;">
<p><input type="button" value = "Return" onclick="ProbClose()" style="width:100%;height:10vh;"></p>
<div style="margin:10px;">
<table>
<caption>Value probability</caption>
<tr><th style="background-color:#E0E0E0">Value</th><th colspan="2" style="background-color:#E0E0E0">STD</th><th colspan="2" style="background-color:#E0E0E0">NO-0</th></tr>
<tr id="ProbP0"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP1"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP2"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP3"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP4"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP5"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP6"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP7"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP8"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP9"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP10"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP11"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP12"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP13"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP14"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP15"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP16"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP17"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP18"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP19"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP20"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP21"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP22"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP23"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP24"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP25"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP26"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP27"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP28"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP29"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP30"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP31"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP32"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP33"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP34"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP35"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP36"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP37"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP38"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP39"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP40"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP41"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP42"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP43"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP44"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP45"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP46"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP47"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP48"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP49"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP50"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP51"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP52"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP53"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP54"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP55"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP56"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP57"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP58"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP59"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP60"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP61"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP62"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP63"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP64"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP65"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP66"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP67"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP68"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP69"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP70"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP71"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP72"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP73"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP74"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP75"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP76"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP77"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP78"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP79"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP80"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP81"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP82"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP83"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP84"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP85"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP86"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP87"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP88"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP89"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP90"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP91"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP92"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP93"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP94"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP95"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP96"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP97"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP98"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP99"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP100"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP101"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP102"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP103"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP104"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP105"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP106"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP107"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP108"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
<tr id="ProbP109"><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td><td align="right"></td></tr>
</table>
<p align="center"></p>
<table id="ProbNums">
<caption>Game table</caption>
<tr>
<td rowspan="3" id="ProbN0" align="center">0</td>
<td id="ProbN3" align="center">0</td>
<td id="ProbN6" align="center">0</td>
<td id="ProbN9" align="center">0</td>
<td id="ProbN12" align="center">0</td>
<td id="ProbN15" align="center">0</td>
<td id="ProbN18" align="center">0</td>
<td id="ProbN21" align="center">0</td>
<td id="ProbN24" align="center">0</td>
<td id="ProbN27" align="center">0</td>
<td id="ProbN30" align="center">0</td>
<td id="ProbN33" align="center">0</td>
<td id="ProbN36" align="center">0</td>
</tr>
<tr>
<td id="ProbN2" align="center">0</td>
<td id="ProbN5" align="center">0</td>
<td id="ProbN8" align="center">0</td>
<td id="ProbN11" align="center">0</td>
<td id="ProbN14" align="center">0</td>
<td id="ProbN17" align="center">0</td>
<td id="ProbN20" align="center">0</td>
<td id="ProbN23" align="center">0</td>
<td id="ProbN26" align="center">0</td>
<td id="ProbN29" align="center">0</td>
<td id="ProbN32" align="center">0</td>
<td id="ProbN35" align="center">0</td>
</tr>
<tr>
<td id="ProbN1" align="center">0</td>
<td id="ProbN4" align="center">0</td>
<td id="ProbN7" align="center">0</td>
<td id="ProbN10" align="center">0</td>
<td id="ProbN13" align="center">0</td>
<td id="ProbN16" align="center">0</td>
<td id="ProbN19" align="center">0</td>
<td id="ProbN22" align="center">0</td>
<td id="ProbN25" align="center">0</td>
<td id="ProbN28" align="center">0</td>
<td id="ProbN31" align="center">0</td>
<td id="ProbN34" align="center">0</td>
</tr>
</table>
<table id="ProbNums100">
<caption>Game table</caption>
<tr>
<td id="Prob100N0" align="center" rowspan="2">0</td>
<td id="Prob100N1" align="center">0</td>
<td id="Prob100N11" align="center">0</td>
<td id="Prob100N21" align="center">0</td>
<td id="Prob100N31" align="center">0</td>
<td id="Prob100N41" align="center">0</td>
<td id="Prob100N51" align="center">0</td>
<td id="Prob100N61" align="center">0</td>
<td id="Prob100N71" align="center">0</td>
<td id="Prob100N81" align="center">0</td>
<td id="Prob100N91" align="center">0</td>
</tr>
<tr>
<td id="Prob100N2" align="center">0</td>
<td id="Prob100N12" align="center">0</td>
<td id="Prob100N22" align="center">0</td>
<td id="Prob100N32" align="center">0</td>
<td id="Prob100N42" align="center">0</td>
<td id="Prob100N52" align="center">0</td>
<td id="Prob100N62" align="center">0</td>
<td id="Prob100N72" align="center">0</td>
<td id="Prob100N82" align="center">0</td>
<td id="Prob100N92" align="center">0</td>
</tr>
<tr>
<td id="Prob100N101" align="center" rowspan="2">0</td>
<td id="Prob100N3" align="center">0</td>
<td id="Prob100N13" align="center">0</td>
<td id="Prob100N23" align="center">0</td>
<td id="Prob100N33" align="center">0</td>
<td id="Prob100N43" align="center">0</td>
<td id="Prob100N53" align="center">0</td>
<td id="Prob100N63" align="center">0</td>
<td id="Prob100N73" align="center">0</td>
<td id="Prob100N83" align="center">0</td>
<td id="Prob100N93" align="center">0</td>
</tr>
<tr>
<td id="Prob100N4" align="center">0</td>
<td id="Prob100N14" align="center">0</td>
<td id="Prob100N24" align="center">0</td>
<td id="Prob100N34" align="center">0</td>
<td id="Prob100N44" align="center">0</td>
<td id="Prob100N54" align="center">0</td>
<td id="Prob100N64" align="center">0</td>
<td id="Prob100N74" align="center">0</td>
<td id="Prob100N84" align="center">0</td>
<td id="Prob100N94" align="center">0</td>
</tr>
<tr>
<td id="Prob100N102" align="center" rowspan="2">0</td>
<td id="Prob100N5" align="center">0</td>
<td id="Prob100N15" align="center">0</td>
<td id="Prob100N25" align="center">0</td>
<td id="Prob100N35" align="center">0</td>
<td id="Prob100N45" align="center">0</td>
<td id="Prob100N55" align="center">0</td>
<td id="Prob100N65" align="center">0</td>
<td id="Prob100N75" align="center">0</td>
<td id="Prob100N85" align="center">0</td>
<td id="Prob100N95" align="center">0</td>
</tr>
<tr>
<td id="Prob100N6" align="center">0</td>
<td id="Prob100N16" align="center">0</td>
<td id="Prob100N26" align="center">0</td>
<td id="Prob100N36" align="center">0</td>
<td id="Prob100N46" align="center">0</td>
<td id="Prob100N56" align="center">0</td>
<td id="Prob100N66" align="center">0</td>
<td id="Prob100N76" align="center">0</td>
<td id="Prob100N86" align="center">0</td>
<td id="Prob100N96" align="center">0</td>
</tr>
<tr>
<td id="Prob100N103" align="center" rowspan="2">0</td>
<td id="Prob100N7" align="center">0</td>
<td id="Prob100N17" align="center">0</td>
<td id="Prob100N27" align="center">0</td>
<td id="Prob100N37" align="center">0</td>
<td id="Prob100N47" align="center">0</td>
<td id="Prob100N57" align="center">0</td>
<td id="Prob100N67" align="center">0</td>
<td id="Prob100N77" align="center">0</td>
<td id="Prob100N87" align="center">0</td>
<td id="Prob100N97" align="center">0</td>
</tr>
<tr>
<td id="Prob100N8" align="center">0</td>
<td id="Prob100N18" align="center">0</td>
<td id="Prob100N28" align="center">0</td>
<td id="Prob100N38" align="center">0</td>
<td id="Prob100N48" align="center">0</td>
<td id="Prob100N58" align="center">0</td>
<td id="Prob100N68" align="center">0</td>
<td id="Prob100N78" align="center">0</td>
<td id="Prob100N88" align="center">0</td>
<td id="Prob100N98" align="center">0</td>
</tr>
<tr>
<td id="Prob100N104" align="center" rowspan="2">0</td>
<td id="Prob100N9" align="center">0</td>
<td id="Prob100N19" align="center">0</td>
<td id="Prob100N29" align="center">0</td>
<td id="Prob100N39" align="center">0</td>
<td id="Prob100N49" align="center">0</td>
<td id="Prob100N59" align="center">0</td>
<td id="Prob100N69" align="center">0</td>
<td id="Prob100N79" align="center">0</td>
<td id="Prob100N89" align="center">0</td>
<td id="Prob100N99" align="center">0</td>
</tr>
<tr>
<td id="Prob100N10" align="center">0</td>
<td id="Prob100N20" align="center">0</td>
<td id="Prob100N30" align="center">0</td>
<td id="Prob100N40" align="center">0</td>
<td id="Prob100N50" align="center">0</td>
<td id="Prob100N60" align="center">0</td>
<td id="Prob100N70" align="center">0</td>
<td id="Prob100N80" align="center">0</td>
<td id="Prob100N90" align="center">0</td>
<td id="Prob100N100" align="center">0</td>
</tr>
</table>
</div>
<p><input type="button" value = "Return" onclick="ProbClose()" style="width:100%;height:10vh;"></p>
</div>
<div id="HelpScreen" style="overflow:scroll; display:none; z-index:2; position:fixed; left:0px; top:0px; right:0px; bottom:0px; background-color:#FFFFFF; width:100%; height:100%; padding:0px; color:black; opacity: 0.95;">
<p><input type="button" value = "Close help" onclick="CloseHelp()" style="width:100%;height:10vh;"></p>
<div style="margin:10px;">
<h1>Overview</h1>
<p>There are three roulette games, which can be played by several players and has the same rules, as in the most casinos in Europe. You have to select game by clicking the name on the intro screen. To play the selected game you have to add al least on player to player list. The screen information is available while no players are on the player list only. In the such case, the help information is available by clicking the working area or the buttons, which function are related to the current player (every button other than <b>PLA</b> and <b>STD</b>).</p>
<p>There are the following games:</p>
<ul>
<li><i>Classic roulette</i> - The classical european roulette with 36 numbers and one zero. This game supports the wheel standard sectors bets known as racetrack.</li>
<li><i>Mini roulette</i> - Roulette with 12 numbers and zero. If the zero is hit, for all bets, which not includes the zero there are lost only half of value.</li>
<li><i>100 roulette</i> - Roulette with 100 numbers, in place of zero, there are five letters.</li>
</ul>
<p>If the zero or letter is hit, all outside bets (odd/even, low/high, red/black, dozens, columns, snake) are lost as a whole. In the <i>Mini roulette</i>, if zero is hit, the player loses only half of value of the bets, which excludes the zero. There is reason, why in the <i>Mini roulette</i> all bets must have even value.</p>
<h1>Information bar</h1>
<p>At the top of the game screen, there is the current player information bar, which is blank, while the player list is blank. During the game, in the bar there ase the following informations:</p>
<ul>
<li>The player name and balance.</li>
<li><b>Chip</b> - The number of chips change step and sign by once click on the table or wheel.</li>
<li><b>Last</b> - The game result of the previous round (won or lost).</li>
<li><b>Factor</b> - The chip value factor used to bet.</li>
<li><b>Bet</b> - The whole bet value including the value factor.</li>
</ul>
<p>The bar is clicking sensitive and has the two the most important game functions (available also while the player list is blank):</p>
<ul>
<li><b>Click on the left or right 1/3 part (where are the player name, balance, factor and bet values)</b> - Change the display (all, table only, wheel only).</li>
<li><b>Click on the center 1/3 part (where are the Chip and Last values)</b> - Spin the wheel (perform the game round), if player list is blank, displays help information.</li>
</ul>
<h1>Button bar</h1>
<p>At the bottom of the game screen, there is the button bar used during game. The first 8 buttons are available only while there is at least one player. Otherwise, the buttons displays the help informations. The button functions are:</p>
<ul>
<li><b><<</b> - Switch to the previous player.</li>
<li><b>>></b> - Switch to the next player.</li>
<li><b>C-</b> - Decrease the number of chips change by once click.</li>
<li><b>C+</b> - Increase the number of chips change by once click.</li>
<li><b>+/-</b> - Switch between chip adding and removing, the state is indicated by value change sign.</li>
<li><b>CLR</b> - Clear all bets (if table is not blank) or set bets from previous round (if table is blank).</li>
<li><b>F-</b> - Decrease the chip value factor.</li>
<li><b>F+</b> - Increase the chip value factor.</li>
<li><b>PLA</b> - Add a player to the player list.</li>
<li><b>STD</b>/<b>NO-0</b>/<b>SEL</b>/<b>PROB</b> - Change the wheel spinning mode (the button caption indicates the current mode).</li>
</ul>
<h1>Players</h1>
<p>To play the game, you have to add at least one player. You can add the number of player as you want. You can add or remove any player during the game at the any moment between wheel spins.</p>
<h2>Add a player</h2>
<p>To add a player, you have to click the <b>PLA</b> button. Then, you have input non-blank player name and initial balance, which can be zero, positive or negative. The player will be added to the player list and set as the current player.</p>
<h2>Change or remove the player</h2>
<p>During the game, you can change the current player name, balance or remove the current player. To do this, you have click the player list (if the list is not visible, change the screen layout until the list is visible). Then, there will be displayed name input box with the current player name. To change the name, simply input another non-blank name or leave the name unchanged, when you want to change the balance only. After the name change, you can change the balance. Input the new balance and leave the balance unchanged.</p>
<p>To remove the current player, click on the player list and clear the player name. After accepting the blank player name, you have to confirm player removing.</p>
<h1>Table bets</h1>
<p>The basis of roulette game is placing bet chips on the table by clicking appropiate table places against the roulette betting rules. Set the number of chips using the <b>C+</b> and <b>C-</b> buttons. To switch between adding or removing chips, clich the <b>+/-</b> button. While the <b>Chip</b> value is positive, the clicking on the table will cause adding the number of chips as indicated be the value everytime. Simirally, if the <b>Chip</b> value is negative, the chips will be removed by clicking them on the table everytime. You can place at most the 10000 chips at the one table place, there are no other limits, such as the minimum or maximum bet value for whole table.</p>
<p>The other players can place his bets after setting the current player to himself by clicking the <b><<</b> or <b>>></b> button. The white chips with number belongs to the current player, the gray chips without number belongs to the players other than the current.</p>
<h2>Chip hints</h2>
<p>At the game begin, on the table there are shown blue frames, which shows all possible chip places. If the frame is larger than chip, you are click anywhere inside the frame tu put the chip.</p>
<p>After the first click on the table or on the wheel number, the hints will disappear. To appear the hints again, click <b>C-</b> or <b>C+</b> button meny times until set the chip nominal beyond the available range. The hint frames will be visible until the next table or wheel number click.</p>
<h2>Snake bet</h2>
<p>The <i>Classic roulette</i> supports the <b>Snake bet</b>, which is one of the outside bets with 2:1 payout (same as column or dozen). For the <b>Snake bet</b>, you have to place the chips on the line crossing between the <b>1st column</b> field corner, the <b>3rd 12</b> field corner and the <b>34</b> field corner. This bet covers the following numbers: 1, 5, 9, 12, 14, 16, 19, 23, 27, 30, 32, and 34.</p>
<h1>Wheel bets</h1>
<p>The wheel illustration can be used as the racetrack to place sector, neighbor and final bets.</p>
<h2>Sectors</h2>
<p>Sector bets are available in <i>Classic roulette</i> only. Inside the wheel, you can place the following sector bets:</p>
<ul>
<li><b>S. 0/2/3</b> - Serie 5/8 - Vousins du Zero - Neighbours of Zero:</li>
<ul>
<li>1 chip for split: {4, 7}, {12, 15}, {18, 21}, {19, 22}, {32, 35}</li>
<li>2 chips for trio: {0, 2, 3}</li>
<li>2 chips for corner: {25, 26, 28, 29}</li>
</ul>
<li><b>0-GAME</b> - 0-Spiel - Zero game:</li>
<ul>
<li>1 chip for straight: {26}</li>
<li>1 chip for split: {0, 3}, {12, 15}, {32, 35}</li>
</ul>
<li><b>S. 5/8</b> - Serie 5/8 - Tiers du Cylindre - Thirds of the wheel:</li>
<ul>
<li>1 chip for split: {5, 8}, {10, 11}, {13, 16}, {23, 24}, {27, 30}, {33, 36}</li>
</ul>
<li><b>ORP.</b> - Orphelins - Orphans:</li>
<ul>
<li>1 chip for straight: {1}</li>
<li>1 chip for split: {6, 9}, {14, 17}, {17, 20}, {31, 34}</li>
</ul>
</ul>
<p>The both <b>S. 0/2/3</b> sectors are treated as the once sector. You can place the chips on both <b>S. 0/2/3</b> sectors, but the bet will be totalized from both sectors. The both <b>ORP.</b> sectors works the same way. The number of placed chips will be automatically multiplied against the sector bet rules.</p>
<p>When you perform the spin, the sector bets will be moved to the table against sector betting rules.</p>
<h2>Neighbors</h2>
<p>By clicking the center of the wheel, you can set the number of neighbours from 0 to 5. The number of neighbours will be shown in the wheel center.</p>
<p>You can click the number on the wheel to place chips on the choosen number and neighbour numbers. The chips will not be shown on the table and will be treated as the same as the chips placed on the single numbers (straight bet) on the table. The wheel numbers, which are affected against the neighbours, will by highlighted.</p>
<h2>Final bets</h2>
<p>The final bets are available in <i>Classic roluette</i> and <i>100 roulette</i>. By clicking the center of the wheel, you can swith to the final bets mode, which will be indicated by <b>Final bets</b> phrase in the wheel center.</p>
<p>In the mode, if you click the number either on the table (straight bets only) or on the wheel, the chips will be placed on all numbers with the same unity digit. When you click on the wheel, the affected numbers will be highlighted.</p>
<p>The semi-final bets are not supported. You have to manually place such bets on the table.</p>
<h2>Decimal bets</h2>
<p>Decimal bets are available in <i>100 roulette</i> only. By clicking the center of the wheel, you can swith to the decimal bets mode, which will be indicated by <b>Dec. bets</b> phrase in the wheel center.</p>
<p>In the mode, if you click the number either on the table (straight bets only) or on the wheel, the chips will be placed on all numbers with the same decimal sequence from 1 to 10 or from 11 to 20 and so on. When you click on the wheel, the affected numbers will be highlighted.</p>
<h1>Chip value factor</h1>
<p>Roulette allows wide range of bet values, so the value of one chip can be set by value factor per one chip. You can change the value factor by clicking <b>F+</b> and <b>F-</b> from 1 do 1 billion in the power of 10 steps. You cannot place several bets in wider range than four order of magnitude due to 10000 chips limit per place, but you can increase the bet value by increasing the value factor. The real bet value (including the factor) are displayed as the <b>Bet</b> value.</p>
<h1>Wheel in the <i>100 roulette</i></h1>
<p>The wheel in the <i>100 roulette</i> has 105 symbols (numbers from 1 to 100 and 5 letters). The 105 units on the wheel circumference will be to narrow to click using the finger and to show chip value. The wheel is splited to three parts, because 3 is one of divisors of 105 and on the circumference there are only 35 units. The splitting point is indicated by white radial placed line. If you look for the numbers clockwise (when the wheel not rotates), the parts are ordered from outer, through the middle, to inner, and the inner part passes to the outer part.</p>
<p>You can place the chips only on symbols, which are on the most outer parts. After symbol click, the splitting point will be places on the opposite place related to clicked symbol.</p>
<p>If you want to click one of the symbols, which is currently on the middle part or inner part, you have to click anywhere on the middle or inner part to move the part to the outer part. The splitting line will be placed on the opposite side related to the clicked symbol.</p>
<h1>Spinning the wheel</h1>
<p>The game provides the three wheel spinning modes, which can be switched by clicking the <b>STD</b> button, which changes the caption against the current mode. There are available the following modes:</p>
<ul>
<li><b>STD</b> - Standard mode. The wheel will automatically choose any of all available numbers or symbols, including zero or card suit.</li>
<li><b>NO-0</b> - Non-zero mode. The mode elliminates the house edge, wheel will automatically choose any number excluding the zero or card suit, despite this, you can place bets including the zero or card suit, but the zero or card suit will never be hit.</li>
<li><b>SEL</b> - Selection mode. The randomization is turned off and the player have to select the hit number by clicking the number of the table or on the wheel. This mode is for test and educational purposes.</li>
<li><b>PROB</b> - Switch between normal mode and probability mode without wheel spining.</li>
</ul>
<p>To spin the wheel, click on the the right 2/3 part of information bar, where are the <b>Chip</b>, <b>Last</b>, <b>Factor</b> and <b>Bet</b> values. During the wheel spinning all functions excepting the screen layout and selecting the number in <b>SEL</b> mode are disabled. If the wheel spinning mode is set to <b>SEL</b>, choose the wining number by clicking on the wheel on on the table.</p>
<p>After the hit number is determined by random in the <b>STD</b> or <b>NO-0</b> mode or by choosing in <b>SEL</b> mode, the balance for every player will be automatically changed by the winning or losing value. The value will be displayed as the <b>Last</b> value. The current player selection does not affect the spinning process and result.</p>
<p>The winning bets will left on the table and the other bets will be removed. The game round ends on this. After that, the next round begins and, you and the other players can again place the bet and spin the wheel. You can use <b>CLR</b> button to clear placed chips.</p>
<p>If the table is blank, this <b>CLR</b> button will allow to set the same bets, which was set in previous round, but you can set the value change factor. To set the factor, you will be asked for <b>Last bet numerator</b> and <b>Last bet denominator</b>. By default, both values are 1 and this value will be used if you input incorrect value. The value of each restored chip will be multiplied by the quotient of numerator and denominator. The chip value will be rounded to integer number. In the <i>Mini roulette</i> the value will be rounded to multiply of 2.</p>
<p>For example, to double bet, input 2 as numerator and 1 as denominator. To make half a bet, input 1 as numerator and 2 as denominator.</p>
<p>If calculated chip value exceedes 10000, the value will be set to 10000. If the calculated and rounded chip value is 0, the chip will not be placed.</p>
<p>The number of rounds are not limited, everytime in placing bet state, a player can be added or removed. At the next to the wheel there are the 12 last hit number, the last number is highlighted in the bar.</p>
<h1>Win/lose probability</h1>
<p>In the <b>PROB</b> wheel spinning mode, you can switch between normal and probability display modes instead of the wheel spin. In the probability mode, the showing information for the current player.</p>
<p>You can play the game, but in the probability mode, there are some differences:</p>
<ul>
<li>On the table and on the wheel, instead of numbers, there will be displayed the change of balance if this number will hit at the spining. The background colors are following:
<ul>
<li>Green - You will win.</li>
<li>Yellow - Your balance will not be changed.</li>
<li>Red - You will lose.</li>
</ul>
</li>
<li>On the table, the chips placed on the inside bets will not be visible, however, you can change the chips by clicking on the table as in normal mode.</li>
<li>In place of player list, there will be displayed the value probability for <b>STD</b> and <b>NO-0</b> spining mode. The table summarizes, which values of spinning are possible and with how high probability of each.</li>
<li>If you click the value probability table, you willl see the same information, but it can be more readable on certain cases.</li>
</ul>
<p>To increate readibility, the <b>Factor</b> setting is not included in the value.</p>
<h1>Payout</h1>
<p>In each game, the payout ratio depends on count of numbers excluding the zero and letters, which equals to number of possible hits when you playing in <b>NO-0</b> mode. The other elements, on which payout ratio depends, is the counts of numbers, which beat covers.</p>
<p>Exactly, the payout radio can be calculated from the following formula: <b>P = ((N / X) - 1)</b></p>
<ul>
<li>P - Payout ratio.</li>
<li>N - Count of all available numbers excluding the zero or letters.
<ul>
<li><i>Classic roulette</i>: <b>N = 36</b></li>
<li><i>Mini roulette</i>: <b>N = 12</b></li>
<li><i>100 roulette</i>: <b>N = 100</b></li>
</ul>
</li>
<li>X - Count of numbers including the zero or letters covered by bet.</li>
</ul>
<p>Some payout radios calculated from above formula are not integer value. Every such radio is rounded down to integer and markered as italic in the following bet payout ratio table.</p>
<table border="1">
<tr><th>Bet</th><th>Classic</th><th>Mini</th><th>100</th></tr>
<tr><td>Straight</td><td align="center">35:1</td><td align="center">11:1</td><td align="center">99:1</td></tr>
<tr><td>Split</td><td align="center">17:1</td><td align="center">5:1</td><td align="center">49:1</td></tr>
<tr><td>Trio</td><td align="center">11:1</td><td align="center">3:1</td><td align="center"><i>32:1</i></td></tr>
<tr><td>Corner</td><td align="center">8:1</td><td align="center">2:1</td><td align="center">24:1</td></tr>
<tr><td>All letters</td><td align="center"> </td><td align="center"> </td><td align="center">19:1</td></tr>
<tr><td>Basket</td><td align="center">8:1</td><td align="center">2:1</td><td align="center"><i>5:1</i></td></tr>
<tr><td>Street</td><td align="center">11:1</td><td align="center">3:1</td><td align="center">9:1</td></tr>
<tr><td>Line</td><td align="center">5:1</td><td align="center">1:1</td><td align="center">4:1</td></tr>
<tr><td>Column</td><td align="center">2:1</td><td align="center">2:1</td><td align="center">9:1</td></tr>
<tr><td>Two columns</td><td align="center"> </td><td align="center"> </td><td align="center">4:1</td></tr>
<tr><td>Dozen</td><td align="center">2:1</td><td align="center"> </td><td align="center"> </td></tr>
<tr><td>Snake</td><td align="center">2:1</td><td align="center"> </td><td align="center"> </td></tr>
<tr><td>Low/High</td><td align="center">1:1</td><td align="center"> </td><td align="center"> </td></tr>
<tr><td>Red/Black</td><td align="center">1:1</td><td align="center">1:1</td><td align="center">1:1</td></tr>
<tr><td>Even/Odd</td><td align="center">1:1</td><td align="center"> </td><td align="center">1:1</td></tr>
</table>
<h1>Game state persistence</h1>
<p>The application automatically saves state using local storage. You can close the application and open it again to resume. This feature prevents from game state lose due to accidentally refresh application or open other URL in your browser. If you want to reset game or select other game, refresh the application at least three times.</p>
</div>
<p><input type="button" value = "Close help" onclick="CloseHelp()" style="width:100%;height:10vh;"></p>
<div>
<script src="graph.js">
</script>
<script src="core.js">
</script>
<script src="paintview.js">
</script>
<script src="paintwheel.js">
</script>
<script src="painttable.js">
</script>
<script src="paintplayer.js">
</script>
<script src="prob.js">
</script>
<script src="spin.js">
</script>
<script src="game.js">
</script>
<script src="struct.js">
</script>
<script src="unistorage.js">
</script>
<script src="gamestate.js">
</script>
<script>
InitStart();
</script>
</body>
</html>