-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
59 lines (57 loc) · 2.64 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Liar's Dice AI</title>
<meta name="description" content="Play Liar's Dice online against an AI. Also known as Dudo or Perudo.">
<link rel="stylesheet" href="static/style.css" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="/static/favicon.png">
<meta content="static/og-image.png" property="og:image">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2L54LD8D49"></script>
<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-2L54LD8D49'); </script>
</head>
<body>
<div class="header">
<h1>Liar's Dice 🤖</h1>
<h2 id="score">Score: 0/0</h2>
</div>
<div class="card elevation" id="main">
<table class="card" id="hands">
<tr><td>Robot hand:</td><td id="robot-dice" class="hand"></td></tr>
<tr><td>Your hand:</td><td id="roll" class="hand"></td></tr>
</table>
<div id="history-div">
</div>
<div class="card elevation">
<div class='button hidden' id='lie-link'>
Challenge last call
</div>
<div>
Your bid:
</div>
<div id="call-box">
</div>
</div>
<div class="card">
<span class="link" id="new-button">New Game</span>
with
<input type="number" value="2" min="1" max="3" size="2" id="size-input" pattern="\d*" inputmode="numeric" />
<label for="size-input">dice</label>
</div>
</div>
<div class="rules">
<a href="https://en.wikipedia.org/wiki/Liar%27s_dice#Single_hand">Rules</a>:
Each player has a set of dice known only to them.
Players take turns guessing on the number of dice that they believe are showing a given face between their two sets of dice.
The guesses keep rising (asserting higher quantities or values of the dice) until one player challenges the guess of the previous player.
1s (⚀) are wild and count for every face.
</div>
<div class="rules">
About this project: Made by <a href="https://thomasahle.com">Thomas Dybdahl Ahle</a>. See <a href="https://github.com/thomasahle/liars-dice">source on GitHub</a> and <a href="https://github.com/thomasahle/snyd">this original project</a>.
</div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.min.js"></script>
<script src="static/script.js"></script>
</body>
</html>