-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
176 lines (175 loc) Β· 9.11 KB
/
index.html
File metadata and controls
176 lines (175 loc) Β· 9.11 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>make10</title>
<meta name="description" content="a math puzzle game">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="main.css">
<script src="decimal.js"></script>
<script src="gemini-mexp-decimal.js"></script>
<script src="SPECIAL.js"></script>
<script src="app.js" defer></script>
<script src="datatransfer.js" defer></script>
<script type="text/javascript" src="jsgif/LZWEncoder.js"></script>
<script type="text/javascript" src="jsgif/NeuQuant.js"></script>
<script type="text/javascript" src="jsgif/GIFEncoder.js"></script>
<script type="text/javascript" src="jsgif/b64.js"></script>
</head>
<body>
<div class="all" id="all" style="margin-bottom: 60px;">
<div id="ephemeralcontainer"></div>
<h1>make10</h1>
<p>your goal is to make a mathematical expression that equals 10
using four numbers in order. you may use the following characters:
<code>+-*/().^!</code>.</p>
<p>try these to start out!</p>
<div class="temp" id="make-1234"></div>
<div class="temp" id="make-4211"></div>
<div class="temp" id="make-1111"></div>
<p>next, you can try <a href="all.html">all the numbers</a><span
id="new_player"></span></p>
<script>
let ls = localStorage.getItem("make10-complete");
if(!ls || ls.split(",").length <= 4) {
document.getElementById("new_player").innerHTML = ", and you should check out <span title='intro_puzzle_bot'>[π€]</span>'s recommended puzzles!"
} else {
document.getElementById("new_player").innerHTML = "!";
}
</script>
<details>
<summary>leaderboard</summary>
<div class="settingsmenu">
<i
style="font-size: 16px" class="mini">this
leaderboard is
updated manually. please dm me on discord @flfff if
you wish to be added!</i>
<div id="lb-0" class="lbblock king">
<h2>π99.5%π</h2>
<i class="mini">9950+ puzzles solved</i>
<ol></ol>
</div>
<div id="lb-1" class="lbblock first">
<h2>π99%π</h2>
<i class="mini">9900+ puzzles solved</i>
<ol></ol>
</div>
<div id="lb-2" class="lbblock second">
<h2>π90%π</h2>
<i class="mini">9000+ puzzles solved</i>
<ol></ol>
</div>
<div id="lb-3" class="lbblock third">
<h2>π50%π</h2>
<i class="mini">5000+ puzzles solved</i>
<ol></ol>
</div>
<script>
let lb = 0;
document.querySelectorAll(".lbblock").forEach(a => {
let ol = a.children[2];
for (let i = 0; i < LEADERBOARD[lb].length; i++) {
ol.innerHTML += `<li><span class="lbtt">${LEADERBOARD[lb][i].split(";")[0]}<span class="lbtt-text">${LEADERBOARD[lb][i].split(";")[1]}</span></span></li>`
}
lb++;
})
</script>
</div>
</details>
<details>
<summary>additional info</summary>
<div class="settingsmenu">
<ul>
<li>not all puzzles are solvable.</li>
<li>0^0 = 1 and 0! = 1.</li>
<li>the calculator is an edited version of <a
href="https://github.com/bugwheels94/math-expression-evaluator#readme"
target="_blank">math-expression-evaluator</a> to
use
<a href="https://mikemcl.github.io/decimal.js/"
target="_blank">decimal.js</a> (this was vibe coded with google gemini).</li>
<li>animation generator uses <a href="https://github.com/antimatter15/jsgif" target="_blank">jsgif</a>.</li>
<li>emoji explanations:<br/>
π₯ - too many digits of precision / number too large during calculation<br/>
β - general error<br/>
βΎοΈ - divide by zero<br/>
π - multiple results in multisolve mode</li>
<li>message me on discord @flfff for comments,
suggestions,
or fun puzzles! alternatively, you may create an issue on <a href="https://github.com/ethannp/make10" target="_blank">the github</a>.</li>
</ul>
</div>
</details>
<details>
<summary>changelog</summary>
<div class="settingsmenu">
<ul>
<li>6/20/2025: you can use WASD or arrow keys when selecting the puzzle number in sandbox mode</li>
<li>6/11/2025: added leaderboard and data backups</li>
<li>6/10/2025: added sandbox mode and user recommended
puzzles (congrats phenomist for completing 99% first!)</li>
<li>6/6/2025: added multisolve mode, progress pictures,
and next buttons</li>
<li>6/5/2025: switched to arbitrary precision
arithmetic</li>
<li>6/4/2025: release date!</li>
</ul>
</div>
</details>
<details>
<summary>data</summary>
<div class="settingsmenu" id="data" style="text-align: center;">
<p style="margin-bottom: 10px;">to export/backup your make10
data, click the button below to download it as an image
file.</p>
<button
style="font-size: 18px; margin: auto;display: block;"
id="export">export</button>
<hr />
<p style="margin-bottom: 10px;">to import your make10 data,
upload the image file below then click the import
button.</p>
<input id="file-upload" style="font-size: 18px; "
type="file" accept=".png"> <br />
<button style="font-size: 18px;" id="import">import</button>
<hr />
<p style="margin-bottom: 10px">use the button below to reset
ALL progress. this operation CANNOT be reversed! please
make a backup of your data before proceeding.</p>
<button style="font-size: 18px;" id="clearall">reset all
progress</button>
<hr />
<p style="margin-bottom: 10px">click below to generate an
animation of your make10 progress! this may take up to
1-2 mins (depending on settings and how many solves you
have).</p>
<div class="rangelabel">
<span>size</span>
<input type="range" id="size" min="2" max="5">
</div>
<div class="rangelabel">
<span>smoothness</span>
<input type="range" id="smoothness" min="2" max="8"
value='5'>
</div>
<button style="font-size: 18px;" id="animation">generate
animation</button>
<p id="progress"></p>
<img id="animationresult"
src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=">
<button style="font-size: 18px;display:none;"
id="replay">replay animation</button>
<button style="font-size: 18px;display:none;"
id="dlanimation">download gif</button>
</div>
</details>
</div>
</body>
</html>