-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
118 lines (113 loc) · 3.19 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<title>SOLVLE</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<script src="allWords.js"></script>
<script src="possibleSolutions.js"></script>
</head>
<body>
<div id="caption">SOLVLE</div>
<div id="thinking">⏳🤔⏳</div>
<div id="stumped">
<div style="text-align: right">╳</div>
<h2>YOU STUMPED ME!</h2>
<label id="actualWordLabel" for="actualWord">What was your word?</label>
<input id="actualWord" maxlength="5" autocomplete="off">
<br><br>
<div id="explainFailure"></div>
<br><br>
</div>
<div id="won">
<div style="text-align: right">╳</div>
<h2 id="win-text"></h2>
<br><br>
</div>
<div id="how-to-play" class="help">
<div style="text-align: right">╳</div>
You know what
<a href="https://www.powerlanguage.co.uk/wordle/" target="_blank">WORDLE</a>
is, right? Where the program has a secret 5-letter word and you have to
guess it? In SOLVLE the roles are reversed. You have a secret 5-letter
word and the program has to guess it.
<br /><br />
Click the tiles with a letter in it to change its color.
<ul>
<li>
If a letter is not in the word, use
<span class="absent">THIS COLOR</span>
</li>
<li>
If a letter is in the word but not the right spot, use
<span class="present">THIS COLOR</span>
</li>
<li>
If a letter is in the word and in the correct spot, use
<span class="correct">THIS COLOR</span>
</li>
</ul>
Once you have rated all five letters in the word, click "guess" to get the
program's next guess.
<br />
<br />
You can use SOLVLE to play WORDLE (in easy mode 😅), by using SOLVLE's guesses in WORDLE and
then using WORDLE's color ratings in SOLVLE.
<br /><br />
If you want to use SOLVLE to cheat even more you can click the "Cheat
more" checkbox, and then SOLVLE will assume that the hidden word is
a known WORDLE solution.
</div>
<div id="explain">
<span id="help-button" class="help">?</span>
<input id="cheat-more" type="checkbox" autocomplete="off" /><label for="cheat-more">Cheat more (target known wordle
solutions)</label>
</div>
<table id="board">
<tr class="tile-row">
<td>R</td>
<td>O</td>
<td>A</td>
<td>T</td>
<td>E</td>
<td rowspan="6" class="guess-button">guess</td>
</tr>
<tr class="tile-row">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr class="tile-row">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr class="tile-row">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr class="tile-row">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr class="tile-row">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
<script src="solvle.js"></script>
</html>