Skip to content

Commit bd614a7

Browse files
k
1 parent 1328ab9 commit bd614a7

10 files changed

Lines changed: 753 additions & 8 deletions

index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,29 +188,29 @@ <h1 class="display-4">Gaming With Python</h1>
188188
</div>
189189
</div>
190190
<div class="card">
191-
<a href="python/temp.html" rel="noopener noreferrer"><img src="assets\images\tron.png" class="card-image"></a>
191+
<a href="python/Tron.html" rel="noopener noreferrer"><img src="assets\images\tron.png" class="card-image"></a>
192192
<div class="card-body">
193-
<a href="#" rel="noopener noreferrer"><h5 class="card-title">Tron</h5></a>
193+
<a href="python/Tron.html" rel="noopener noreferrer"><h5 class="card-title">Tron</h5></a>
194194
</div>
195195
</div>
196196
</div>
197197

198198
<div class="card-deck">
199199
<div class="card">
200-
<a href="python/temp.html" rel="noopener noreferrer"><img src="assets\images\catch-ball.png" class="card-image"></a>
200+
<a href="python/Catch-The-Ball.html" rel="noopener noreferrer"><img src="assets\images\catch-ball.png" class="card-image"></a>
201201
<div class="card-body">
202-
<a href="#" rel="noopener noreferrer"><h5 class="card-title">Catch The Ball</h5></a>
202+
<a href="python/Catch-The-Ball.html" rel="noopener noreferrer"><h5 class="card-title">Catch The Ball</h5></a>
203203
</div>
204204
</div>
205205
<div class="card">
206-
<a href="python/temp.html" rel="noopener noreferrer"><img src="assets\images\matchmaker.jpg" class="card-image"></a>
206+
<a href="python/Matchmaker.html" rel="noopener noreferrer"><img src="assets\images\matchmaker.jpg" class="card-image"></a>
207207
<div class="card-body">
208-
<a href="#" rel="noopener noreferrer"><h5 class="card-title">Matchmaker</h5></a>
208+
<a href="python/Matchmaker.html" rel="noopener noreferrer"><h5 class="card-title">Matchmaker</h5></a>
209209
</div>
210210
</div>
211211
</div>
212212

213-
<div class="card-deck">
213+
<!-- <div class="card-deck">
214214
<div class="card">
215215
<a href="python/temp.html" rel="noopener noreferrer"><img src="assets\images\caterpillar.png" class="card-image"></a>
216216
<div class="card-body">
@@ -223,7 +223,7 @@ <h1 class="display-4">Gaming With Python</h1>
223223
<a href="#" rel="noopener noreferrer"><h5 class="card-title">XXXXXX</h5></a>
224224
</div>
225225
</div>
226-
</div>
226+
</div> -->
227227

228228
</div>
229229

python/Catch-The-Ball.html

Lines changed: 330 additions & 0 deletions
Large diffs are not rendered by default.

python/Matchmaker.html

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
8+
<meta property="og:title" content="PyBox - Python Games">
9+
<meta property="og:type" content="website">
10+
<meta property="og:description" content="Python Games to increase your skill and experience in Python">
11+
<!-- <meta property="og:image" content="">
12+
<meta property="og:url" content=""> -->
13+
14+
<meta name="twitter:title" content="PyBox - Python Games">
15+
<meta name="twitter:site" content="@hhhrrrttt222111">
16+
<meta name="twitter:creator" content="@hhhrrrttt222111">
17+
<meta name="twitter:description" content="Python Games to increase your skill and experience in Python">
18+
19+
20+
<link rel = "icon" href ="..\assets\icons\logo-png.png" type = "image/x-icon">
21+
22+
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
23+
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
24+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
25+
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
26+
<link rel="stylesheet" href="games.css">
27+
<title>PyBox - Matchmaker</title>
28+
</head>
29+
<body>
30+
31+
<nav class="navbar static-top">
32+
<div class="container">
33+
<a class="navbar-brand" href="../index.html"><img src="..\assets\icons\logo-png.png" class="nav-logo" alt="PyBox"></a>
34+
<button onclick="goBack()" class="btn btn-dark">Go Back</button>
35+
</div>
36+
37+
</nav>
38+
39+
40+
<div class="container">
41+
<div class="row">
42+
<div class="col-sm-4">
43+
<h1 class="game-title">Matchmaker</h1>
44+
<p class="game-desc">Some text about me in culpa qui officia deserunt mollit anim..</p>
45+
<ul class="nav nav-pills flex-column">
46+
<li class="nav-item">
47+
<a class="fa fa-2x fa-github" href="#" target="_blank" rel="noopener noreferrer"></a>
48+
</li>
49+
</ul>
50+
<hr class="d-sm-none">
51+
</div>
52+
53+
54+
<div class="col-sm-8">
55+
56+
57+
<div class="download">
58+
<h4 class="dwnld">Download</h4>
59+
<a class="btn" href="Text/matchmaker.txt" download><i class="fa fa-2x fa-file"></i></a>
60+
<a class="btn" href="../Games/Matchmaker.py" download><img src="../assets/icons/python-icon.png" alt="python-icon" class="python-icon"></i></a>
61+
</div>
62+
63+
64+
65+
<!-- CODE -->
66+
<pre class="code">
67+
<span class="comment"># import modules</span>
68+
<span class="in-built">import</span> random
69+
<span class="in-built">import</span> time
70+
<span class="in-built">from</span> tkinter <span class="in-built">import</span> <span class="function">Tk</span>, Button, DISABLED
71+
72+
<span class="comment"># Create main window</span>
73+
tk = <span class="function">Tk</span>()
74+
75+
<span># Set window title and icon</span>
76+
tk.<span class="function">title</span>('Matchmaker')
77+
tk.<span class="function">Tk</span>("logo-ico.ico")
78+
79+
<span class="comment"># Variables</span>
80+
<span class="variable">first</span> = True
81+
<span class="variable">prev_x</span> = 0
82+
<span class="variable">prev_y</span> = 0
83+
<span class="variable">buttons</span> = { }
84+
<span class="variable">button_symbols</span> = { }
85+
86+
<span class="comment"># Matchmaker Symbols</span>
87+
<span class="variable">symbols</span> = [u'\u2702', u'\u2705', u'\u2708', u'\u2709', u'\u270A', u'\u270B',
88+
u'\u270C', u'\u270F', u'\u2712', u'\u2714', u'\u2716', u'\u2728',
89+
u'\u2702', u'\u2705', u'\u2708', u'\u2709', u'\u270A', u'\u270B',
90+
u'\u270C', u'\u270F', u'\u2712', u'\u2714', u'\u2716', u'\u2728']
91+
92+
93+
random.<span class="function">shuffle</span>(<span class="variable">symbols</span>)
94+
95+
96+
<span class="comment"># Function to display Icons</span>
97+
<span class="in-built">def</span> <span class="function">show_symbol</span>(x, y):
98+
<span class="in-built">global</span> <span class="variable">first</span>
99+
<span class="in-built">global</span> <span class="variable">prev_x</span>, <span class="variable">prev_y</span>
100+
<span class="variable">buttons</span>[x, y]['text'] = <span class="variable">button_symbols</span>[x, y]
101+
<span class="variable">buttons</span>[x, y].update_idletasks()
102+
103+
<span class="in-built">if</span> <span class="variable">first</span>:
104+
<span class="variable">prev_x</span> = x
105+
<span class="variable">prev_y</span> = y
106+
<span class="variable">first</span> = False
107+
<span class="in-built">elif</span> <span class="variable">prev_x</span> != x or <span class="variable">prev_y</span> != y:
108+
<span class="in-built">if</span> <span class="variable">buttons</span>[<span class="variable">prev_x</span>, <span class="variable">prev_y</span>]['text'] != <span class="variable">buttons</span>[x, y]['text']:
109+
time.sleep(0.5)
110+
<span class="variable">buttons</span>[<span class="variable">prev_x</span>, <span class="variable">prev_y</span>]['text'] = ' '
111+
<span class="variable">buttons</span>[x, y]['text'] = ' '
112+
<span class="in-built">else</span>:
113+
<span class="variable">buttons</span>[<span class="variable">prev_x</span>, <span class="variable">prev_y</span>]['command'] = DISABLED
114+
<span class="variable">buttons</span>[x, y]['command'] = DISABLED
115+
<span class="variable">first</span> = True
116+
117+
118+
<span class="in-built">for</span> x in <span class="function">range</span>(6):
119+
<span class="in-built">for</span> y in <span class="function">range</span>(4):
120+
button = Button(command=lambda x=x, y=y: <span class="function">show_symbol</span>(x, y)
121+
, width=10, height=8, bg='#b3ffb3', fg='#cc0000')
122+
button.grid(column=x, row=y)
123+
<span class="variable">buttons</span>[x, y] = button
124+
<span class="variable">button_symbols</span>[x, y] = <span class="variable">symbols</span>.pop()
125+
<span class="variable">buttons</span>[x, y]['font'] = 'Times 12 bold'
126+
127+
tk.<span class="function">mainloop</span>()
128+
</pre>
129+
130+
<!-- CODE -->
131+
<br>
132+
133+
134+
135+
136+
137+
<div class="images">
138+
<div id="carouselExampleFade" class="carousel slide carousel-fade" data-ride="carousel">
139+
<ol class="carousel-indicators">
140+
<li data-target="#carouselExampleCaptions" data-slide-to="0" class="active"></li>
141+
<li data-target="#carouselExampleCaptions" data-slide-to="1"></li>
142+
143+
</ol>
144+
<div class="carousel-inner">
145+
<div class="carousel-item active">
146+
<img src="img/Matchmaker-1.PNG" class="d-block w-100" alt="...">
147+
</div>
148+
<div class="carousel-item">
149+
<img src="img/Matchmaker-2.PNG" class="d-block w-100" alt="...">
150+
</div>
151+
</div>
152+
<a class="carousel-control-prev" href="#carouselExampleFade" role="button" data-slide="prev">
153+
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
154+
<span class="sr-only">Previous</span>
155+
</a>
156+
<a class="carousel-control-next" href="#carouselExampleFade" role="button" data-slide="next">
157+
<span class="carousel-control-next-icon" aria-hidden="true"></span>
158+
<span class="sr-only">Next</span>
159+
</a>
160+
</div>
161+
</div>
162+
163+
164+
165+
166+
<div class="buyme">
167+
168+
<a href="https://ko-fi.com/hhhrrrttt222111" target="_blank" rel="noopener noreferrer"><span class="buy">Buy Me A Coffee</span><img src="../assets/icons/kofi.png" alt="ko-fi" class="coffee"></a>
169+
</div>
170+
171+
</div>
172+
173+
</div>
174+
175+
</div>
176+
177+
178+
179+
<div class="footer">
180+
<p class="footer-heart">
181+
Made with <g-emoji class="g-emoji" alias="heart" fallback-src="https://raw.githubusercontent.com/hhhrrrttt222111/etudia/master/assets/necro.png?token=AKLVDPY75U5YNHZ7PRA4Y4K6TRB2I">
182+
<img class="emoji" alt="heart" height="20" width="20" src="https://raw.githubusercontent.com/hhhrrrttt222111/etudia/master/assets/necro.png?token=AKLVDPY75U5YNHZ7PRA4Y4K6TRB2I">
183+
</g-emoji> by <a href="http://hhhrrrttt222111.me/" target="_blank">HRT</a>
184+
</p>
185+
</div>
186+
187+
188+
189+
190+
<script>
191+
function goBack() {
192+
window.history.back();
193+
}
194+
</script>
195+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
196+
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
197+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
198+
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
199+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
200+
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
201+
</body>
202+
</html>

0 commit comments

Comments
 (0)