Skip to content

Commit

Permalink
Merge pull request #24 from Builderbot2000/master
Browse files Browse the repository at this point in the history
Documentation Grammar and Readability Revisions
  • Loading branch information
prajjwal-mathur authored Nov 26, 2022
2 parents 9f6f479 + 1c26629 commit 9a97bd1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 12 deletions.
15 changes: 8 additions & 7 deletions 10. BlackJack/Readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# BlackJack Game ♠️♥️♦️♣️
- Rules of the game:
- Goal of the game is to add upto largest number without going over **21**
- If the card in your hand adds up more than **21**, it's called a Bust causing immediate lose.
- Goal of the game is to add up to the largest number without going over **21**
- If the card in your hand adds up to more than **21**, it's called a Bust causing immediate lose.
- **Jack**, **Queen** and **King**, all are considered or counted as number **10**
- **Ace** is normally counted as **11** but if you're scoring 20 and showing up an ace, then it's counted as **1**
- About the game:
- In the start, both the players, here AI and player; are given two cards.
- Ai's one card is shown to you while other remains hidden.
- At the start, both players, here as represented by the AI and the player, are given two cards.
- AI's one card is shown to you while other remains hidden.
- Your own cards are visible to you.
- Either you can ask the dealer to given one more card or pass the opportunity.
- If you pass the opportunity then dealer shows you their card:
- If either of you have score less than 17 then you have to take a card or if you pass then whomsover's score is higher but below 21 wins.
- If both score 20, then its a draw
- If either goes over 21, other wins
- If either of you have score less than 17 then you have to take a card
- Or, if you pass: whichever player's score is higher and below 21 wins.
- If both score 20, then it is a draw
- If either goes over 21, the other player wins
4 changes: 2 additions & 2 deletions 11. Number Guessing Game/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
- You choose the difficulty level:
- Easy: 10 attempts
- Hard: 5 attempts
- Keep guessing until your guessed number becomes equal to randomly choosen number between 1 to 100🤩
- Keep guessing until your guessed number matches the randomly chosen number between 1 to 100🤩
## New term learnt🆕:
- Constants: They remain constant and are written in capitalcase, if declared outside a block, they are global.
- Constants: They remain constant and are written in capital case, if declared outside a block, they are global.

> If you encounter any bug or have any difficulty in understanding a part of code, raise an issue, contribute to the repo or simply ask respectively.
10 changes: 9 additions & 1 deletion 2.Tip_Calculator/readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# 2.Tip Calculator🤑
A simple calculator that calculates how much tip you should pay given your bill and group size

## *How to use:*
1. Enter the total bill.
2. Enter the tip percentage you would like to give.
3. Enter the number of people that are willing to split the bill with you.
Voila!

## *Example on how it works:*
1. If the bill was ₹150.00, split between 5 people, with a 12% tip.
2. Each person should pay ((150.00+(150.00*12)/100) / 5) = 33.6
3. Format the result upto 2 decimal places,we get = ₹33.60
3. Format the result up to 2 decimal places, we get = ₹33.60

#### Side Note:
You can change the currency sign as per the country you're residing in.😊
1 change: 1 addition & 0 deletions 8. Secret Auction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
## Description:
- It's an auction where we don't tell who's the highest bidder, it's just luck if a particular person wins.
- In this way, no ones guesses if the bid is going higher. So no competition since no one knows who's winning
- To Play: 1. Enter your name in the console 2. Enter "Yes" or "No" to choose whether to continue the game
- ```Uses Dictionary method to store the records and in the end uses a function to get the maximum bid from the record.```
9 changes: 7 additions & 2 deletions 9. Simple Calculator/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Simple Calculator🧮
## Description:
- It's a simple calculator having features like:
- Addition, Subtraction, Multiplication, Division and Modulus of two numbers at a time.
- Restart the calculation from your previous result or restart the calculator from the start.
- Addition
- Subtraction
- Multiplication
- Division
- Modulo division with two numbers at a time
- Restarting of the calculation from a previous result
- Restarting of the calculator from the start

0 comments on commit 9a97bd1

Please sign in to comment.