Skip to content

Commit 851ee2e

Browse files
Merge branch 'main' into feat/issue-971-async-scraper
2 parents 3c6d70a + e927cad commit 851ee2e

10 files changed

Lines changed: 930 additions & 28 deletions

File tree

README.md

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,12 @@ These standalone Python project files do not have a browser counterpart yet and
482482
<sub><b>@Ridima28</b></sub>
483483
</a>
484484
</td>
485+
<td align="center" width="120">
486+
<a href="https://github.com/Saloni885">
487+
<img src="https://github.com/Saloni885.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="Saloni885" /><br />
488+
<sub><b>@Saloni885</b></sub>
489+
</a>
490+
</td>
485491
<td align="center" width="120">
486492
<a href="https://github.com/Sanjhivvarshan-b-s">
487493
<img src="https://github.com/Sanjhivvarshan-b-s.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="Sanjhivvarshan-b-s" /><br />
@@ -500,14 +506,14 @@ These standalone Python project files do not have a browser counterpart yet and
500506
<sub><b>@Shashank-8p</b></sub>
501507
</a>
502508
</td>
509+
</tr>
510+
<tr>
503511
<td align="center" width="120">
504512
<a href="https://github.com/Shital861">
505513
<img src="https://github.com/Shital861.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="Shital861" /><br />
506514
<sub><b>@Shital861</b></sub>
507515
</a>
508516
</td>
509-
</tr>
510-
<tr>
511517
<td align="center" width="120">
512518
<a href="https://github.com/Shivi-Srivastava-4444">
513519
<img src="https://github.com/Shivi-Srivastava-4444.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="Shivi-Srivastava-4444" /><br />
@@ -538,14 +544,14 @@ These standalone Python project files do not have a browser counterpart yet and
538544
<sub><b>@Suhani-ai-dev</b></sub>
539545
</a>
540546
</td>
547+
</tr>
548+
<tr>
541549
<td align="center" width="120">
542550
<a href="https://github.com/Tech4Aditya">
543551
<img src="https://github.com/Tech4Aditya.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="Tech4Aditya" /><br />
544552
<sub><b>@Tech4Aditya</b></sub>
545553
</a>
546554
</td>
547-
</tr>
548-
<tr>
549555
<td align="center" width="120">
550556
<a href="https://github.com/TheBinaryAVA">
551557
<img src="https://github.com/TheBinaryAVA.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="TheBinaryAVA" /><br />
@@ -576,14 +582,14 @@ These standalone Python project files do not have a browser counterpart yet and
576582
<sub><b>@Vinanthi07</b></sub>
577583
</a>
578584
</td>
585+
</tr>
586+
<tr>
579587
<td align="center" width="120">
580588
<a href="https://github.com/Yogender-verma">
581589
<img src="https://github.com/Yogender-verma.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="Yogender-verma" /><br />
582590
<sub><b>@Yogender-verma</b></sub>
583591
</a>
584592
</td>
585-
</tr>
586-
<tr>
587593
<td align="center" width="120">
588594
<a href="https://github.com/abdullahxyz85">
589595
<img src="https://github.com/abdullahxyz85.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="abdullahxyz85" /><br />
@@ -614,14 +620,14 @@ These standalone Python project files do not have a browser counterpart yet and
614620
<sub><b>@artic2702</b></sub>
615621
</a>
616622
</td>
623+
</tr>
624+
<tr>
617625
<td align="center" width="120">
618626
<a href="https://github.com/ash-heinz">
619627
<img src="https://github.com/ash-heinz.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="ash-heinz" /><br />
620628
<sub><b>@ash-heinz</b></sub>
621629
</a>
622630
</td>
623-
</tr>
624-
<tr>
625631
<td align="center" width="120">
626632
<a href="https://github.com/aspartic-gthb">
627633
<img src="https://github.com/aspartic-gthb.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="aspartic-gthb" /><br />
@@ -652,14 +658,14 @@ These standalone Python project files do not have a browser counterpart yet and
652658
<sub><b>@bhavyapandiya29</b></sub>
653659
</a>
654660
</td>
661+
</tr>
662+
<tr>
655663
<td align="center" width="120">
656664
<a href="https://github.com/codewithakshyaaa">
657665
<img src="https://github.com/codewithakshyaaa.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="codewithakshyaaa" /><br />
658666
<sub><b>@codewithakshyaaa</b></sub>
659667
</a>
660668
</td>
661-
</tr>
662-
<tr>
663669
<td align="center" width="120">
664670
<a href="https://github.com/developer-yash03">
665671
<img src="https://github.com/developer-yash03.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="developer-yash03" /><br />
@@ -690,14 +696,14 @@ These standalone Python project files do not have a browser counterpart yet and
690696
<sub><b>@gatiksolanki13-netizen</b></sub>
691697
</a>
692698
</td>
699+
</tr>
700+
<tr>
693701
<td align="center" width="120">
694702
<a href="https://github.com/iamprasoon2006-cell">
695703
<img src="https://github.com/iamprasoon2006-cell.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="iamprasoon2006-cell" /><br />
696704
<sub><b>@iamprasoon2006-cell</b></sub>
697705
</a>
698706
</td>
699-
</tr>
700-
<tr>
701707
<td align="center" width="120">
702708
<a href="https://github.com/itsdakshjain">
703709
<img src="https://github.com/itsdakshjain.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="itsdakshjain" /><br />
@@ -728,14 +734,14 @@ These standalone Python project files do not have a browser counterpart yet and
728734
<sub><b>@kumudasrip</b></sub>
729735
</a>
730736
</td>
737+
</tr>
738+
<tr>
731739
<td align="center" width="120">
732740
<a href="https://github.com/madhavcodes25">
733741
<img src="https://github.com/madhavcodes25.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="madhavcodes25" /><br />
734742
<sub><b>@madhavcodes25</b></sub>
735743
</a>
736744
</td>
737-
</tr>
738-
<tr>
739745
<td align="center" width="120">
740746
<a href="https://github.com/mahi-8758">
741747
<img src="https://github.com/mahi-8758.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="mahi-8758" /><br />
@@ -766,14 +772,14 @@ These standalone Python project files do not have a browser counterpart yet and
766772
<sub><b>@nene-hana</b></sub>
767773
</a>
768774
</td>
775+
</tr>
776+
<tr>
769777
<td align="center" width="120">
770778
<a href="https://github.com/nimkarprachi17">
771779
<img src="https://github.com/nimkarprachi17.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="nimkarprachi17" /><br />
772780
<sub><b>@nimkarprachi17</b></sub>
773781
</a>
774782
</td>
775-
</tr>
776-
<tr>
777783
<td align="center" width="120">
778784
<a href="https://github.com/nishtha-agarwal-211">
779785
<img src="https://github.com/nishtha-agarwal-211.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="nishtha-agarwal-211" /><br />
@@ -804,14 +810,14 @@ These standalone Python project files do not have a browser counterpart yet and
804810
<sub><b>@parulpaliwal01</b></sub>
805811
</a>
806812
</td>
813+
</tr>
814+
<tr>
807815
<td align="center" width="120">
808816
<a href="https://github.com/pragya-manna">
809817
<img src="https://github.com/pragya-manna.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="pragya-manna" /><br />
810818
<sub><b>@pragya-manna</b></sub>
811819
</a>
812820
</td>
813-
</tr>
814-
<tr>
815821
<td align="center" width="120">
816822
<a href="https://github.com/prasad-0007">
817823
<img src="https://github.com/prasad-0007.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="prasad-0007" /><br />
@@ -842,14 +848,14 @@ These standalone Python project files do not have a browser counterpart yet and
842848
<sub><b>@rishit537</b></sub>
843849
</a>
844850
</td>
851+
</tr>
852+
<tr>
845853
<td align="center" width="120">
846854
<a href="https://github.com/sakshicoded1111">
847855
<img src="https://github.com/sakshicoded1111.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="sakshicoded1111" /><br />
848856
<sub><b>@sakshicoded1111</b></sub>
849857
</a>
850858
</td>
851-
</tr>
852-
<tr>
853859
<td align="center" width="120">
854860
<a href="https://github.com/samarthchawla2005">
855861
<img src="https://github.com/samarthchawla2005.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="samarthchawla2005" /><br />
@@ -880,14 +886,14 @@ These standalone Python project files do not have a browser counterpart yet and
880886
<sub><b>@shimonenator</b></sub>
881887
</a>
882888
</td>
889+
</tr>
890+
<tr>
883891
<td align="center" width="120">
884892
<a href="https://github.com/shreyasarote7717-cyber">
885893
<img src="https://github.com/shreyasarote7717-cyber.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="shreyasarote7717-cyber" /><br />
886894
<sub><b>@shreyasarote7717-cyber</b></sub>
887895
</a>
888896
</td>
889-
</tr>
890-
<tr>
891897
<td align="center" width="120">
892898
<a href="https://github.com/shreyasgawande19">
893899
<img src="https://github.com/shreyasgawande19.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="shreyasgawande19" /><br />
@@ -918,14 +924,14 @@ These standalone Python project files do not have a browser counterpart yet and
918924
<sub><b>@steam-bell-92</b></sub>
919925
</a>
920926
</td>
927+
</tr>
928+
<tr>
921929
<td align="center" width="120">
922930
<a href="https://github.com/sujitsingh8">
923931
<img src="https://github.com/sujitsingh8.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="sujitsingh8" /><br />
924932
<sub><b>@sujitsingh8</b></sub>
925933
</a>
926934
</td>
927-
</tr>
928-
<tr>
929935
<td align="center" width="120">
930936
<a href="https://github.com/tanishkakora">
931937
<img src="https://github.com/tanishkakora.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="tanishkakora" /><br />
@@ -956,14 +962,14 @@ These standalone Python project files do not have a browser counterpart yet and
956962
<sub><b>@vedika76</b></sub>
957963
</a>
958964
</td>
965+
</tr>
966+
<tr>
959967
<td align="center" width="120">
960968
<a href="https://github.com/vedikabajaj05">
961969
<img src="https://github.com/vedikabajaj05.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="vedikabajaj05" /><br />
962970
<sub><b>@vedikabajaj05</b></sub>
963971
</a>
964972
</td>
965-
</tr>
966-
<tr>
967973
<td align="center" width="120">
968974
<a href="https://github.com/vivekCS007">
969975
<img src="https://github.com/vivekCS007.png?size=100" width="100" height="100" style="border-radius:50%; border:2px solid #555;" alt="vivekCS007" /><br />
@@ -979,7 +985,6 @@ These standalone Python project files do not have a browser counterpart yet and
979985
<td width="120"></td>
980986
<td width="120"></td>
981987
<td width="120"></td>
982-
<td width="120"></td>
983988
</tr>
984989
</table>
985990
<!-- CONTRIBUTORS_END -->

games/Whack-a-Mole/Whack-a-Mole.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ def main():
1111
import os
1212
import sys
1313

14+
# Add root directory to sys.path to import utils package
15+
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
16+
from utils import save_score, get_top_scores
17+
1418
# Windows only for non-blocking input
1519
try:
1620
import msvcrt
@@ -206,6 +210,20 @@ def main():
206210
else:
207211
print("\n 🐭 The moles win this round...")
208212

213+
# Save and display high scores
214+
name = input("\n Enter your name for the high scores board: ").strip()
215+
if name:
216+
save_score("Whack-a-Mole", name, score)
217+
218+
print("\n🏆 ===== HIGH SCORES BOARD =====")
219+
top_scores = get_top_scores("Whack-a-Mole", 5)
220+
if top_scores:
221+
for idx, (p_name, p_score, p_time) in enumerate(top_scores):
222+
print(f" {idx+1}. {p_name:15s} : {p_score:4d} ({p_time})")
223+
else:
224+
print(" No high scores yet!")
225+
print("================================")
226+
209227
while True:
210228
replay = input("\n Play again? (y / n): ").strip().lower()
211229
if replay in ['y', 'yes', 'n', 'no']:

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ matplotlib = "3.8.3"
1212
pillow = "12.2.0"
1313
nltk = "3.9.4"
1414
requests = "2.34.2"
15+
markdown2 = "2.5.5"
16+
reportlab = "4.5.1"
1517

1618
[tool.poetry.group.dev.dependencies]
1719
pytest = ">=8.0.0"

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ pytest>=8.0.0
1111
nltk==3.9.4
1212
requests==2.34.2
1313
aiohttp==3.11.11
14+
15+
# Markdown-to-PDF dependencies
16+
markdown2==2.5.5
17+
reportlab==4.5.1

0 commit comments

Comments
 (0)