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

Commit c7af916

Browse files
authored
Merge branch 'Mrinank-Bhowmick:main' into othello_contribution
2 parents 14c0742 + aa2632d commit c7af916

10 files changed

Lines changed: 592 additions & 116 deletions

File tree

README.md

Lines changed: 54 additions & 33 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"/>
@@ -1621,10 +1635,10 @@
16211635
</a>
16221636
</td>
16231637
<td align="center">
1624-
<a href="https://github.com/wre9-tesh">
1625-
<img src="https://avatars.githubusercontent.com/u/96977189?v=4" width="100;" alt="wre9-tesh"/>
1638+
<a href="https://github.com/asingh4451">
1639+
<img src="https://avatars.githubusercontent.com/u/108614474?v=4" width="100;" alt="asingh4451"/>
16261640
<br />
1627-
<sub><b>Amitesh Kumar</b></sub>
1641+
<sub><b>Asingh4451</b></sub>
16281642
</a>
16291643
</td>
16301644
<td align="center">
@@ -1640,7 +1654,8 @@
16401654
<br />
16411655
<sub><b>Emmanuel Ogu</b></sub>
16421656
</a>
1643-
</td>
1657+
</td></tr>
1658+
<tr>
16441659
<td align="center">
16451660
<a href="https://github.com/d-coder111">
16461661
<img src="https://avatars.githubusercontent.com/u/82580017?v=4" width="100;" alt="d-coder111"/>
@@ -1654,8 +1669,7 @@
16541669
<br />
16551670
<sub><b>Harshit Sharma</b></sub>
16561671
</a>
1657-
</td></tr>
1658-
<tr>
1672+
</td>
16591673
<td align="center">
16601674
<a href="https://github.com/faizaslam11">
16611675
<img src="https://avatars.githubusercontent.com/u/60103930?v=4" width="100;" alt="faizaslam11"/>
@@ -1670,13 +1684,21 @@
16701684
<sub><b>Dhruv Jagdish</b></sub>
16711685
</a>
16721686
</td>
1687+
<td align="center">
1688+
<a href="https://github.com/kanchanrai7">
1689+
<img src="https://avatars.githubusercontent.com/u/114416916?v=4" width="100;" alt="kanchanrai7"/>
1690+
<br />
1691+
<sub><b>Kanchan Rai</b></sub>
1692+
</a>
1693+
</td>
16731694
<td align="center">
16741695
<a href="https://github.com/kodingkin">
16751696
<img src="https://avatars.githubusercontent.com/u/125667216?v=4" width="100;" alt="kodingkin"/>
16761697
<br />
16771698
<sub><b>Kodingkin</b></sub>
16781699
</a>
1679-
</td>
1700+
</td></tr>
1701+
<tr>
16801702
<td align="center">
16811703
<a href="https://github.com/mojiibraheem">
16821704
<img src="https://avatars.githubusercontent.com/u/111240638?v=4" width="100;" alt="mojiibraheem"/>
@@ -1697,8 +1719,7 @@
16971719
<br />
16981720
<sub><b>Myudak</b></sub>
16991721
</a>
1700-
</td></tr>
1701-
<tr>
1722+
</td>
17021723
<td align="center">
17031724
<a href="https://github.com/NebulaAnish">
17041725
<img src="https://avatars.githubusercontent.com/u/50112251?v=4" width="100;" alt="NebulaAnish"/>
@@ -1719,7 +1740,8 @@
17191740
<br />
17201741
<sub><b>Prabin Shrestha</b></sub>
17211742
</a>
1722-
</td>
1743+
</td></tr>
1744+
<tr>
17231745
<td align="center">
17241746
<a href="https://github.com/pratyusha0710">
17251747
<img src="https://avatars.githubusercontent.com/u/115498333?v=4" width="100;" alt="pratyusha0710"/>
@@ -1740,8 +1762,7 @@
17401762
<br />
17411763
<sub><b>Shreya Rathore</b></sub>
17421764
</a>
1743-
</td></tr>
1744-
<tr>
1765+
</td>
17451766
<td align="center">
17461767
<a href="https://github.com/ta-brook">
17471768
<img src="https://avatars.githubusercontent.com/u/85091595?v=4" width="100;" alt="ta-brook"/>

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: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# CRUD CLI with 🐘 PostgreSQL
2+
3+
Well, this is a simple CRUD CLI with PostgreSQL. I made this project to help others learn more about PostgreSQL driver for Python and how to create beautiful and interactive CLI's with Python.
4+
5+
Well it is basically a book mark manager, you can add, edit, delete and list your bookmarks.
6+
7+
It is called the Query DB btw.
8+
9+
## What you can learn
10+
11+
I highly recommend you try and read through the code.
12+
As a beginner, it is far easier to read code that is more like what you would write yourself, and this is a good example of that.
13+
It doesn't use any advanced Python features, and it doesn't use any advanced SQL features either.
14+
15+
So, no classes, confusing context managers, or anything like that.
16+
Just plain old functions and SQL.
17+
18+
So, if you are a beginner, you can learn:
19+
20+
- Asking better input from the user
21+
- Using PostgreSQL with Python
22+
- Creating beautiful and interactive CLI's with Python
23+
- Create, Read, Update and Delete (CRUD) operations with PostgreSQL
24+
25+
If you find this project useful, please give it's parent a star.
26+
27+
## Screenshot
28+
29+
![Screenshot](assets/screenshot.png)
30+
31+
## Features
32+
33+
1. Easy to use
34+
2. Interactive
35+
3. Beautiful
36+
4. No need to remember SQL commands
37+
5. Fast and lightweight
38+
39+
## Prerequisites
40+
41+
- Python 3.6 or higher
42+
- PostgreSQL 9.5 or higher
43+
44+
### Python dependencies
45+
46+
- psycopg2
47+
- rich
48+
49+
These dependencies are already in the `requirements.txt` file.
50+
51+
### Create a database
52+
53+
We use postgresql as our database, so you need to create a database with any name and enter the credentials in the `creds.json` file.
54+
55+
```bash
56+
createdb db_name
57+
```
58+
59+
## How to use
60+
61+
First, you need to install the dependencies:
62+
63+
```bash
64+
pip install -r requirements.txt
65+
```
66+
67+
Then, you need to create a `creds.json` file with the following info:
68+
69+
```json
70+
{
71+
"username": "postgres",
72+
"password": "password",
73+
"host": "127.0.0.1",
74+
"port": "5432",
75+
"database": "test"
76+
}
77+
```
78+
79+
After that, you can run the CLI with:
80+
81+
```bash
82+
python main.py
83+
```
84+
85+
It's done! Now you can use the CLI.
50 KB
Loading
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"username": "joshi",
3+
"password": "NoobScience",
4+
"host": "127.0.0.1",
5+
"port": "5432",
6+
"database": "learn_sql"
7+
}

0 commit comments

Comments
 (0)