forked from minoli-g/squaredle-solver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (70 loc) · 4.19 KB
/
index.html
File metadata and controls
79 lines (70 loc) · 4.19 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
<!DOCTYPE html>
<head>
<title> Squaredle Solver </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="solver.js"></script>
<script src="driver.js"></script>
<script src="words3.js"></script>
</head>
<body>
<div style="width:380px; height:420px; margin:auto;">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<h2 class="mr-sm-2"> Squaredle Solver </h2>
<button class="btn btn-outline-dark my-2 py-0 my-sm-0" data-toggle="modal" data-target="#exampleModal">
<h3>?</h3>
</button>
</nav>
<br>
<div class="px-3">
<p> Enter the puzzle board into the form below,
each row separated by a hyphen (ex: abc-def-ghi)
</p>
<p> If there are any missing or faded squares,
add an @ symbol in their place (ex: ab@-def-g@i)</p>
</div>
<form class="px-3">
<input type="text" class="form-control form-control-lg" id="boardStr" size="30"/>
<br>
<div class="text-center">
<button type="submit" class="btn btn-outline-dark mx-auto" id="submitBtn" onclick="onSubmit(); return false;">Solve!</button>
</div>
</form>
<br>
<p id="solutionList" style="word-wrap: break-word;" class="px-3"></p>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">About Squaredle Solver</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
This is a solver for the popular word-finding game <a href="https://squaredle.app/">Squaredle</a>.
<br>
Please note that the results generated may not be an exact match with Squaredle's word list,
but should cover almost all the required words.
<br><br>
This site is in no way affiliated with <a href="https://squaredle.app/">Squaredle</a>.
<hr>
<b> IMPORTANT: </b> Use of this solver to artificially gain
a perfect score in a short time and catapult to the top of the leaderboard is strongly discouraged,
and can lead to your account being blocked from Squaredle's leaderboard.
<hr>
Got feedback, or see something you'd like to change?
Check out the <a href="https://github.com/minoli-g/squaredle-solver">GitHub repository</a>, and
feel free to submit an issue or put in a pull request.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>