Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 6f8b15b

Browse files
Merge branch 'main' into main
2 parents 936677f + 11993df commit 6f8b15b

5 files changed

Lines changed: 244 additions & 77 deletions

File tree

README.md

Lines changed: 53 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,13 @@
13191319
<sub><b>Aditya Kumar</b></sub>
13201320
</a>
13211321
</td>
1322+
<td align="center">
1323+
<a href="https://github.com/Albinary">
1324+
<img src="https://avatars.githubusercontent.com/u/69315591?v=4" width="100;" alt="Albinary"/>
1325+
<br />
1326+
<sub><b>Albert</b></sub>
1327+
</a>
1328+
</td>
13221329
<td align="center">
13231330
<a href="https://github.com/anishaxtha">
13241331
<img src="https://avatars.githubusercontent.com/u/98213145?v=4" width="100;" alt="anishaxtha"/>
@@ -1333,13 +1340,21 @@
13331340
<sub><b>Anju Chhetri</b></sub>
13341341
</a>
13351342
</td>
1343+
<td align="center">
1344+
<a href="https://github.com/ArifShariar">
1345+
<img src="https://avatars.githubusercontent.com/u/43639863?v=4" width="100;" alt="ArifShariar"/>
1346+
<br />
1347+
<sub><b>Arif Shariar Rahman</b></sub>
1348+
</a>
1349+
</td>
13361350
<td align="center">
13371351
<a href="https://github.com/AtharvaDeshmukh0909">
13381352
<img src="https://avatars.githubusercontent.com/u/97836434?v=4" width="100;" alt="AtharvaDeshmukh0909"/>
13391353
<br />
13401354
<sub><b>AtharvaDeshmukh0909</b></sub>
13411355
</a>
1342-
</td>
1356+
</td></tr>
1357+
<tr>
13431358
<td align="center">
13441359
<a href="https://github.com/Crack-er-jack">
13451360
<img src="https://avatars.githubusercontent.com/u/82202860?v=4" width="100;" alt="Crack-er-jack"/>
@@ -1353,8 +1368,7 @@
13531368
<br />
13541369
<sub><b>David-hosting</b></sub>
13551370
</a>
1356-
</td></tr>
1357-
<tr>
1371+
</td>
13581372
<td align="center">
13591373
<a href="https://github.com/Dhandeep10">
13601374
<img src="https://avatars.githubusercontent.com/u/106858770?v=4" width="100;" alt="Dhandeep10"/>
@@ -1382,7 +1396,8 @@
13821396
<br />
13831397
<sub><b>Ebrahim G</b></sub>
13841398
</a>
1385-
</td>
1399+
</td></tr>
1400+
<tr>
13861401
<td align="center">
13871402
<a href="https://github.com/GargiMittal">
13881403
<img src="https://avatars.githubusercontent.com/u/98906186?v=4" width="100;" alt="GargiMittal"/>
@@ -1396,8 +1411,7 @@
13961411
<br />
13971412
<sub><b>HarsH</b></sub>
13981413
</a>
1399-
</td></tr>
1400-
<tr>
1414+
</td>
14011415
<td align="center">
14021416
<a href="https://github.com/HimanshuSinghNegi">
14031417
<img src="https://avatars.githubusercontent.com/u/72004239?v=4" width="100;" alt="HimanshuSinghNegi"/>
@@ -1425,7 +1439,8 @@
14251439
<br />
14261440
<sub><b>Kom Senapati </b></sub>
14271441
</a>
1428-
</td>
1442+
</td></tr>
1443+
<tr>
14291444
<td align="center">
14301445
<a href="https://github.com/Krishna13515">
14311446
<img src="https://avatars.githubusercontent.com/u/103298281?v=4" width="100;" alt="Krishna13515"/>
@@ -1439,8 +1454,7 @@
14391454
<br />
14401455
<sub><b>Kunal Pitale</b></sub>
14411456
</a>
1442-
</td></tr>
1443-
<tr>
1457+
</td>
14441458
<td align="center">
14451459
<a href="https://github.com/manav0702">
14461460
<img src="https://avatars.githubusercontent.com/u/94554798?v=4" width="100;" alt="manav0702"/>
@@ -1468,7 +1482,8 @@
14681482
<br />
14691483
<sub><b>Nischay Goyal</b></sub>
14701484
</a>
1471-
</td>
1485+
</td></tr>
1486+
<tr>
14721487
<td align="center">
14731488
<a href="https://github.com/NooBIE-Nilay">
14741489
<img src="https://avatars.githubusercontent.com/u/66667272?v=4" width="100;" alt="NooBIE-Nilay"/>
@@ -1482,8 +1497,7 @@
14821497
<br />
14831498
<sub><b>Kushal Pareek</b></sub>
14841499
</a>
1485-
</td></tr>
1486-
<tr>
1500+
</td>
14871501
<td align="center">
14881502
<a href="https://github.com/Prajwol-Shrestha">
14891503
<img src="https://avatars.githubusercontent.com/u/70046321?v=4" width="100;" alt="Prajwol-Shrestha"/>
@@ -1511,7 +1525,8 @@
15111525
<br />
15121526
<sub><b>Faris Faikar</b></sub>
15131527
</a>
1514-
</td>
1528+
</td></tr>
1529+
<tr>
15151530
<td align="center">
15161531
<a href="https://github.com/Raashika0201">
15171532
<img src="https://avatars.githubusercontent.com/u/110974003?v=4" width="100;" alt="Raashika0201"/>
@@ -1525,8 +1540,7 @@
15251540
<br />
15261541
<sub><b>Ramii Ahmed</b></sub>
15271542
</a>
1528-
</td></tr>
1529-
<tr>
1543+
</td>
15301544
<td align="center">
15311545
<a href="https://github.com/RishiPastor05">
15321546
<img src="https://avatars.githubusercontent.com/u/87607061?v=4" width="100;" alt="RishiPastor05"/>
@@ -1554,7 +1568,8 @@
15541568
<br />
15551569
<sub><b>Samayita Kali</b></sub>
15561570
</a>
1557-
</td>
1571+
</td></tr>
1572+
<tr>
15581573
<td align="center">
15591574
<a href="https://github.com/CapedDemon">
15601575
<img src="https://avatars.githubusercontent.com/u/93109967?v=4" width="100;" alt="CapedDemon"/>
@@ -1568,8 +1583,7 @@
15681583
<br />
15691584
<sub><b>Shubham Kumar</b></sub>
15701585
</a>
1571-
</td></tr>
1572-
<tr>
1586+
</td>
15731587
<td align="center">
15741588
<a href="https://github.com/SulimanSagindykov">
15751589
<img src="https://avatars.githubusercontent.com/u/115887342?v=4" width="100;" alt="SulimanSagindykov"/>
@@ -1597,7 +1611,8 @@
15971611
<br />
15981612
<sub><b>Vishvam S</b></sub>
15991613
</a>
1600-
</td>
1614+
</td></tr>
1615+
<tr>
16011616
<td align="center">
16021617
<a href="https://github.com/Ylavish64">
16031618
<img src="https://avatars.githubusercontent.com/u/105187742?v=4" width="100;" alt="Ylavish64"/>
@@ -1611,8 +1626,7 @@
16111626
<br />
16121627
<sub><b>Yogeshwar Kumar</b></sub>
16131628
</a>
1614-
</td></tr>
1615-
<tr>
1629+
</td>
16161630
<td align="center">
16171631
<a href="https://github.com/ambushneupane">
16181632
<img src="https://avatars.githubusercontent.com/u/56769633?v=4" width="100;" alt="ambushneupane"/>
@@ -1631,7 +1645,7 @@
16311645
<a href="https://github.com/asingh4451">
16321646
<img src="https://avatars.githubusercontent.com/u/108614474?v=4" width="100;" alt="asingh4451"/>
16331647
<br />
1634-
<sub><b>asingh4451</b></sub>
1648+
<sub><b>Asingh4451</b></sub>
16351649
</a>
16361650
</td>
16371651
<td align="center">
@@ -1640,7 +1654,8 @@
16401654
<br />
16411655
<sub><b>Prajwal Benedict A</b></sub>
16421656
</a>
1643-
</td>
1657+
</td></tr>
1658+
<tr>
16441659
<td align="center">
16451660
<a href="https://github.com/chimerson">
16461661
<img src="https://avatars.githubusercontent.com/u/110922266?v=4" width="100;" alt="chimerson"/>
@@ -1654,8 +1669,7 @@
16541669
<br />
16551670
<sub><b>D-coder111</b></sub>
16561671
</a>
1657-
</td></tr>
1658-
<tr>
1672+
</td>
16591673
<td align="center">
16601674
<a href="https://github.com/dab07">
16611675
<img src="https://avatars.githubusercontent.com/u/78215681?v=4" width="100;" alt="dab07"/>
@@ -1677,6 +1691,14 @@
16771691
<sub><b>Dhruv Jagdish</b></sub>
16781692
</a>
16791693
</td>
1694+
<td align="center">
1695+
<a href="https://github.com/kanchanrai7">
1696+
<img src="https://avatars.githubusercontent.com/u/114416916?v=4" width="100;" alt="kanchanrai7"/>
1697+
<br />
1698+
<sub><b>Kanchan Rai</b></sub>
1699+
</a>
1700+
</td></tr>
1701+
<tr>
16801702
<td align="center">
16811703
<a href="https://github.com/kodingkin">
16821704
<img src="https://avatars.githubusercontent.com/u/125667216?v=4" width="100;" alt="kodingkin"/>
@@ -1697,8 +1719,7 @@
16971719
<br />
16981720
<sub><b>Tharindu De Silva</b></sub>
16991721
</a>
1700-
</td></tr>
1701-
<tr>
1722+
</td>
17021723
<td align="center">
17031724
<a href="https://github.com/myudak">
17041725
<img src="https://avatars.githubusercontent.com/u/69108782?v=4" width="100;" alt="myudak"/>
@@ -1719,7 +1740,8 @@
17191740
<br />
17201741
<sub><b>Abhishek Ghimire</b></sub>
17211742
</a>
1722-
</td>
1743+
</td></tr>
1744+
<tr>
17231745
<td align="center">
17241746
<a href="https://github.com/Prabinshrestha737">
17251747
<img src="https://avatars.githubusercontent.com/u/41283995?v=4" width="100;" alt="Prabinshrestha737"/>
@@ -1740,8 +1762,7 @@
17401762
<br />
17411763
<sub><b>Samual Martin</b></sub>
17421764
</a>
1743-
</td></tr>
1744-
<tr>
1765+
</td>
17451766
<td align="center">
17461767
<a href="https://github.com/rathoreshreya">
17471768
<img src="https://avatars.githubusercontent.com/u/109817678?v=4" width="100;" alt="rathoreshreya"/>
@@ -1762,7 +1783,8 @@
17621783
<br />
17631784
<sub><b>Leon Heinrich</b></sub>
17641785
</a>
1765-
</td>
1786+
</td></tr>
1787+
<tr>
17661788
<td align="center">
17671789
<a href="https://github.com/NishantPacharne">
17681790
<img src="https://avatars.githubusercontent.com/u/71060551?v=4" width="100;" alt="NishantPacharne"/>

projects/BlackJack/ReadMe.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
11
# BLACKJACK
22

3-
BlackJack is very popular card game mainly played in casinos around the world.
4-
Let's imagine this program as a virtual casino with computer as the **Dealer**.
5-
The purpose of this game is to beat the Dealer, which can be done in various ways.
3+
Blackjack is a very popular card game commonlu played in casinos worldwide.
4+
This program will simulate a virtual casino, with computer as the dealer.
5+
The purpose of this game is to beat the dealer, which can be done in various ways.
66

77
## Rules
88

9-
- Both the player and the dealer are given 2 cards at the beginning , but one of the dealer's card is kept hidden.
10-
11-
Each card holds a certain value.
12-
13-
- Numbered cards contain value identical to their number.
14-
- All face cards hold a value of 10
15-
- Ace can either hold a value of 1 or 11 depending on the situation.
16-
17-
BlackJack means **21**. Whoever gets a total value of 21 with their cards immediately wins!
18-
*(winning through blackjack results in 3x the money)*
19-
20-
If the value of cards goes over 21, its called a BUST, which results in immediate loss...
21-
If both the players get the same value of cards , it's a TIE and the betted money is returned.
22-
23-
If none of the above cases are met ,the person with closer value to 21 wins.
24-
*(winning like this returns 2x the betted money)*
9+
- At the start of the game, both the player and the dealer are given 2 cards, however one of the dealer's card is kept hidden.
10+
- Each card holds a certain value.
11+
- Numbered cards have a value identical to their number.
12+
- All face cards (e.g. King, Queen) hold a value of 10.
13+
- Aces can either hold a value of 1 or 11, depending on the situation.
14+
- Blackjack refers to a total card value of **21**. When a player achieves this, they immediately win, and the victory results in a payout 3x the amount of the bet!
15+
- If the total value of cards exceeds 21, it's called a BUST, which results in immediate loss. If both participants bust, the result is a tie, and the bets are returned.
16+
- If none of the above conditions are met, the person with a closer value to 21 wins. Winning in this manner results in a payout 2x the amount of the bet!
2517

2618
-----------------------------------------------------------------------------------------------------------------
2719

28-
For simplicity of the program a lot of moves like double down,split and surrender were skipped.
29-
The program also lacks proper linting , debugging and optimization at the moment.
20+
PLEASE NOTE: For simplicity, this program does not include advanced moves, such as double downs, splits and surrenders. The program also currently lacks proper linting, debugging and optimization.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import tkinter as tk
2+
from tkinter import messagebox
3+
import random
4+
import sys # Import the sys module for exiting the application
5+
6+
# Define upper and lower bounds for the game
7+
lower_limit = 1
8+
upper_limit = 10
9+
secret_number = random.randint(lower_limit, upper_limit)
10+
11+
12+
# Function to check if the user's guess is correct
13+
def check_guess():
14+
user_guess = int(guess_entry.get())
15+
if user_guess == secret_number:
16+
messagebox.showinfo("Congratulations", "Congratulations! You guessed it!")
17+
elif user_guess < secret_number:
18+
result_label.config(text="Try a higher number.")
19+
else:
20+
result_label.config(text="Try a lower number.")
21+
22+
23+
# Function to exit the application
24+
def exit_game():
25+
root.destroy() # Close the Tkinter window and exit the application
26+
27+
28+
# Create the main application window
29+
root = tk.Tk()
30+
root.title("Number Guessing Game")
31+
root.geometry("400x200")
32+
33+
# Change the background color of the window and label to salmon
34+
root.configure(bg="pink1")
35+
36+
# Create and place widgets using grid
37+
instructions_label = tk.Label(
38+
root, text=f"Guess a number between {lower_limit} and {upper_limit}:", bg="pink1"
39+
)
40+
instructions_label.grid(row=0, column=0, columnspan=2)
41+
42+
guess_entry = tk.Entry(root)
43+
guess_entry.grid(row=1, column=0, columnspan=2)
44+
45+
guess_button = tk.Button(root, text="Guess", command=check_guess)
46+
guess_button.grid(row=2, column=0)
47+
48+
exit_button = tk.Button(root, text="Exit", command=exit_game)
49+
exit_button.grid(row=2, column=1)
50+
51+
result_label = tk.Label(root, text="", bg="pink1")
52+
result_label.grid(row=3, column=0, columnspan=2)
53+
54+
# Center-align the widgets
55+
root.grid_rowconfigure(0, weight=1)
56+
root.grid_rowconfigure(1, weight=1)
57+
root.grid_rowconfigure(2, weight=1)
58+
root.grid_rowconfigure(3, weight=1)
59+
root.grid_columnconfigure(0, weight=1)
60+
root.grid_columnconfigure(1, weight=1)
61+
62+
# Run the main loop
63+
root.mainloop()

0 commit comments

Comments
 (0)