-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex2.html
More file actions
196 lines (176 loc) · 8.96 KB
/
ex2.html
File metadata and controls
196 lines (176 loc) · 8.96 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!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">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="https://png.pngitem.com/pimgs/s/499-4998998_code-icon-png-free-coding-symbol-transparent-background.png" />
<title>Code Factory</title>
</head>
<body>
<nav class="navbar sticky-top navbar-expand-lg navbar-dark bg-dark text-light">
<img src="https://lh3.googleusercontent.com/a-/AOh14GiRfctjqvedFyQnl9PPeYPsRQLOtk3JEXrmNeioTg=s600-k-no-rp-mo" style="width: 50px; height: 50px; margin: 0; padding: 0; margin-right:5px;">
<a class="navbar-brand">Polclard's Code Factory</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse text-light" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="CPPcomplier.html">C++ Compiler</a>
</li>
<li class="nav-item">
<a class="nav-link" href="exercises.html">Exercises</a>
</li>
</ul>
</div>
</nav>
<div>
<h1 class='text-center'>Exercise 2:</h1>
<h2><f class="text-dark">Title: </f>Path Finder</h2>
<hr>
<h4 class='text-left'>Find the movement pattern for <strong>'P'</strong> to get to <strong>'X'.</strong><br>You need to write how much fields should <strong>'P'</strong> needs to move <strong>Up, Down, Left or Right</strong> to get to 'X'.</h4>
<br>
<h4>Example:</h4>
<br>
<div class="ex2-st">
<h4> Up: 0<br>
Down: 8<br>
Left: 0<br>
Right: 8<br>
<br>
P - - - - - - - - - <br>
- - - - - - - - - - <br>
- - - - - - - - - - <br>
- - - - - - - - - - <br>
- - - - - - - - - - <br>
- - - - - - - - - - <br>
- - - - - - - - - - <br>
- - - - - - - - - - <br>
- - - - - - - - X - <br>
- - - - - - - - - -<br>
<br>
</h4>
</div>
<h4>Explanation:<br><strong>'P'</strong> needs to go <strong>Down: 8</strong> fields, and then it needs to go <strong>Right: 8 </strong>fields.</h4>
<h3 class='text-right'><a href="programs/second.py" download>Download the source code here</a></h3>
<hr>
<h3>Comment:</h3>
<p>Sorry that I am diverting from C++, but this is cool Exercise to show you.</p>
<hr>
</div>
<div style="margin: 10px;">
<iframe frameborder="0" width="100%" height="800px" src="https://replit.com/@alenjang007/PathFinder?lite=true"></iframe>
</div>
<div>
<!-- Footer -->
<footer class="text-center text-dark-start bg-dark text-muted text-white">
<!-- Section: Social media -->
<section
class="d-flex justify-content-center justify-content-lg-between p-4 border-bottom"
>
<!-- Left -->
<div class="me-5 d-none d-lg-block">
<span></span>
</div>
<!-- Left -->
<!-- Right -->
<div>
<a href="" class="me-4 text-reset">
<i class="fab fa-facebook-f"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-twitter"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-google"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-instagram"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-linkedin"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-github"></i>
</a>
</div>
<!-- Right -->
</section>
<!-- Section: Social media -->
<!-- Section: Links -->
<section class="">
<div class="container text-center text-md-start mt-5">
<div class="row mt-3">
<div class="col-md-3 col-lg-4 col-xl-3 mx-auto mb-4">
<!-- Content -->
<h6 class="text-uppercase fw-bold mb-4">
<i class="fas fa-gem me-3 text-white">Polclard</i>
</h6>
<p class="text-white">
"The task is not to see what has never been seen before, but to think what has never been thought before about what you see everyday."
<strong>Erwin Schrödinger</strong>
</p>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-2 col-lg-2 col-xl-2 mx-auto mb-4">
<!-- Links -->
<h6 class="text-uppercase fw-bold mb-4 text-white">
Social Media
</h6>
<p>
<a href="https://www.instagram.com/jangelov_alen/?hl=en" target=”_blank” class="text-reset text-warning text-decoration-underline">Instagram</a>
</p>
<p>
<a href="https://www.facebook.com/Polclard" target=”_blank” class="text-reset text-warning text-decoration-underline">Facebook</a>
</p>
<p>
<a href="https://twitter.com/jangelov_alen" target=”_blank” class="text-reset text-warning text-decoration-underline">Twitter</a>
</p>
<p>
<a href="https://github.com/Polclard" target=”_blank” class="text-reset text-warning text-decoration-underline">Github</a>
</p>
</div>
<!-- Grid column -->
<!-- Grid column -->
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-4 col-lg-3 col-xl-3 mx-auto mb-md-0 mb-4">
<!-- Links -->
<h6 class="text-uppercase fw-bold mb-4 text-white">
Contact
</h6>
<p><i class="fas fa-home me-3 text-white">G-mail: </i><a href="mailto:alenjang2@gmail.com" class="text-primary text-warning">alenjang2@gmail.com</a></p>
<p>
<i class="fas fa-envelope me-3"></i>
<a href="https://polclard.github.io/" class="text-warning">polclard.github.io</a>
</p>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
</section>
<!-- Section: Links -->
<!-- Copyright -->
<hr style="background-color: white;">
<div class="text-center p-4 bg-dark text-white">
© 2021 Copyright:
<h4>Polclard</h4>
<h4><img src="https://lh3.googleusercontent.com/a-/AOh14GiRfctjqvedFyQnl9PPeYPsRQLOtk3JEXrmNeioTg=s600-k-no-rp-mo"></h4>
</div>
</footer>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="script.js"></script>
</html>