-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathabout.html
170 lines (159 loc) · 7.16 KB
/
about.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A classic logic game">
<meta name="keywords" content="Mastermind, logic game, daveyjh, javascript game">
<meta name="theme-color" content="#3e363f">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/css/about.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Rajdhani&family=Orbitron&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="preload" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" as="style" onload="this.onload=null;this.rel='stylesheet'" crossorigin="anonymous">
<noscript>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani&family=Orbitron&display=swap">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" crossorigin="anonymous">
</noscript>
<link rel="apple-touch-icon" sizes="180x180" href="./assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicon/favicon-16x16.png">
<title>Mastermind - About</title>
</head>
<body>
<header>
<div class="flex-container lr-padding j-space-between">
<div>
<span id="header-img-background"></span>
<div id="header-img">
<!-- header image applied as background image via CSS -->
</div>
</div>
<h1 class="text-center js-center">Mastermind</h1>
<div class="current"></div>
</div>
<nav>
<ul>
<li>
<a href="./index.html">Play</a>
</li>
<li>
<a href="./challenge.html">Challenge</a>
</li>
<li>
<a href="./rules.html">Rules</a>
</li>
<li>
<a href="./about.html" class="nav-active">About</a>
</li>
</ul>
</nav>
</header>
<main class="text-center about-me">
<section>
<div id="main-about" class="rel">
<span class="adjust-destination" id="daveyjh-destination"></span>
<h2 id="daveyjh">About The Developer</h2>
<div id="profile-img-holder">
<img src="./assets/images/profile.webp" alt="profile picture of the
developer" id="profile-img">
</div>
<p class="first">
Dave J. Horrocks is a junior software developer with a passion for
problem solving and logical processes.
This playable version of Mastermind is his second-ever JavaScript
creation.
</p>
<p>
The parameters of the game and the simple styling allowed a deep dive
into the world of JavaScript.
Hopefully, the result provides an enjoyable experience for all users.
</p>
<p class="last">
Learning many things along the way and always eager to learn more,
feel free to find out more about him.
If you found a bug...definitely get in touch!
</p>
</div>
<div id="contact-links">
<a href="https://github.com/daveyjh" target="_blank" rel="noreferrer noopener"><i class="fab
fa-github-alt"></i> @DaveyJH</a>
<a href="https://linkedin.com/in/davejhorrocks"
target="_blank" rel="noreferrer noopener"><i class="fab fa-linkedin"></i> LinkedIn</a>
</div>
</section>
<section>
<form id="contact-form">
<h2>Contact Via Email</h2>
<input type="hidden" name="contact_number">
<label for="name">Name:</label>
<input type="text" name="user_name" id="name" required>
<label for="email">Email:</label>
<input type="email" name="user_email" id="email" required>
<label for="github-link">GitHub:</label>
<input type="text" name="github_link" id="github-link" placeholder="@">
<label for="message">Message:</label>
<textarea name="message" maxlength="250" id="message" required
placeholder="Max. 250 characters..."></textarea>
<input type="submit" value="Send">
</form>
</section>
</main>
<aside class="text-center">
<article>
<div id="knuth" class="rel">
<span class="adjust-destination" id="knuth-destination"></span>
<h1>About The Mastermind Five-Guess Algorithm</h1>
<h2>Donald E. Knuth</h2>
<p>
An algorithm was devised in the late 1970s which allows a player to
decipher the code within five guesses,
as long as the following conditions are set:
</p>
<ul id="text-left-list">
<li>There are four balls in the solution</li>
<li>The number of colours available is six</li>
<li>Colours are repeatable within the solution</li>
</ul>
<p>
The first step is to guess a sequence of <span>1122</span>, where
each integer 1-6 represents a colour. The algorithm continues by
choosing a sequence that could eliminate the highest number of
possible solutions each time. The number of possible solutions to
this particular set-up is 6<sup>4</sup> = <strong>1296!</strong>
</p>
<p>
That would take you quite a while to work through on paper. It would
be almost impossible to calculate and keep track of in your head.
Therefore, this algorithm is done far quicker by machines - if coded
correctly to do so!
</p>
<p>
To find out more about the steps involved, and for the original
document written by Donald E. Knuth, please consult the links below.
</p>
<p class="last">
If you still can't get your head around it, contact <a class="adjust-origin"
href="#daveyjh" id="link-to-top" rel="author">Dave J. Horrocks</a> via one of the
methods above and he will do his best to explain each step in the
algorithm.
</p>
</div>
<div id="algorithm-links">
<a href="https://www.cs.uni.edu/~wallingf/teaching/cs3530/resources/knuth-mastermind.pdf"
target="_blank" rel="noreferrer noopener external" download>Knuth's Paper  <i class="far
fa-file-pdf"></i><span class="hidden-aria-text">pdf download</span></a>
<a href="https://en.wikipedia.org/wiki/Mastermind_(board_game)#Best_strategies_with_four_pegs_and_six_colors"
target="_blank" rel="noreferrer noopener external">Wikipedia Explanation</a>
</div>
</article>
</aside>
<footer>©DaveyJH</footer>
<!-- emailjs -->
<script src="https://cdn.jsdelivr.net/npm/emailjs-com@3/dist/email.min.js"></script>
<script src="assets/js/email.js"></script>
<script src="assets/js/header-link.js"></script>
</body>
</html>