-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (74 loc) · 3.03 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
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
<html>
<head>
<title>Wordle Solver</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-24Y68ZD9Y5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-24Y68ZD9Y5');
</script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>Wordle Solver</h1>
<p>For helping solve Wordle-like puzzles!</p>
<ul>
<li><a href="https://www.powerlanguage.co.uk/wordle/" target="_blank">https://www.powerlanguage.co.uk/wordle/</a></li>
<li><a href="http://foldr.moe/hello-wordl/" target="_blank">http://foldr.moe/hello-wordl/</a></li>
<li><a href="https://octokatherine.github.io/word-master/" target="_blank">https://octokatherine.github.io/word-master/</a></li>
</ul>
<p>Code and credits available on <a href="https://github.com/benwang93/wordle_solver" target="_blank">GitHub</a>.</p>
<p>Let's start with some information on your puzzle!</p>
<form>
<label for="wordLength"><b>Number of letters</b></label>:</label>
<input type="text" name="wordLength" id="wordLength" value="5">
<br>
<input id="updateResults" type="button" value="Update number of Letters" onclick="updateNumberLetters();" />
</form>
<br>
<p>
Now enter letters from your guesses below. Click <b>Toggle</b> to change each cell's color. Then click <b>Update results</b>.
<br>
<i>Hint: On a computer, click Tab to jump between cells/buttons and Spacebar to toggle color.</i>
</p>
<table id="wordGrid">
<!-- Correct/Incorrect letter positions go here -->
</table>
<br>
<!-- <input id="addRow" type="button" value="Add row" onclick="addWordGridRow();" /> -->
<input id="updateResults" type="button" value="Update results" onclick="updateResults();" />
<input id="resetForm" type="button" value="Start over" onclick="resetWordForm();" />
<br>
<br>
<h2 id="numResultsHeading">Possible results</h2>
<p>The higher the score, the more possible words this guess can eliminate.</p>
<table>
<tr>
<td style="padding-right: 100px;">
<center>
<h3>Possible solutions<br>(obey all rules)</h3>
<table id="outputTable" border="1">
<!-- Filtered words go here -->
</table>
</center>
</td>
<td>
<center>
<h3>Best weeder words<br>(contains most unseen letters)</h3>
<table id="outputTableEliminate" border="1"></table>
<!-- Filtered words go here -->
</table>
</center>
</td>
</tr>
</table>
<script src="scripts/app.js"></script>
<script>
updateNumberLetters();
</script>
</body>
</html>