Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
228 changes: 21 additions & 207 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,207 +1,21 @@
![Star Badge](https://img.shields.io/static/v1?label=%F0%9F%8C%9F&message=If%20Useful&style=style=flat&color=BC4E99)
![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)
[![View My Profile](https://img.shields.io/badge/View-My_Profile-green?logo=GitHub)](https://github.com/ndleah)
[![View Repositories](https://img.shields.io/badge/View-My_Repositories-blue?logo=GitHub)](https://github.com/ndleah?tab=repositories)

[![forthebadge](https://forthebadge.com/images/badges/powered-by-coffee.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/powered-by-black-magic.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)

# Python Mini Projects <img src="https://i.pinimg.com/originals/d8/5d/f0/d85df08df1212c0f8b219e779c5ebc46.gif" align="right" width="120" />

> A collection of easy Python small projects to help you improve your programming skills.

![Issues](https://img.shields.io/github/issues/ndleah/python-mini-project?style=social&logo=github)
![Pull Requests](https://img.shields.io/github/issues-pr/ndleah/python-mini-project?style=social&logo=github)
![Forks](https://img.shields.io/github/forks/ndleah/python-mini-project?style=social&logo=github)
![Stars](https://img.shields.io/github/stars/ndleah/python-mini-project?style=social&logo=github)
[![License](https://img.shields.io/github/license/ndleah/python-mini-project?style=social&logo=github)](https://github.com/ndleah/python-mini-project/blob/main/LICENSE)

<!-- omit in toc -->

## Table Of Contents

- [Aim Of The Project](#-aim-of-the-project)
- [Contributing](#-contributing)
- [README Template for scripts](#-readme-template-for-scripts)
- [Projects](#-projects)
- [Feedback](#-feedback)

## ![image](IMG/aiming.svg) Aim Of The Project

As a Python newbie, I understand the problems that people face when they first begin studying and attempting to understand various Data Science concepts, particularly Python. This project is designed for folks who are just getting started with Python principles and exploring GitHub as "contributors."

My goal is to build a common playground where everyone, from beginners to experts, can learn and share knowledge, and I hope you enjoy your stay here!

Let's "folk-ing" create amazing things together! 👉

## ![image](IMG/game-ps.svg) Contributing

<details>
<summary>
Step 1: Star The Repo
</summary>

Star the repo by pressing the topmost-right button to start your wonderful journey

![star repo](https://docs.github.com/assets/images/help/stars/starring-a-repository.png)

</details>

---

<details>
<summary>
Step 2: Fork it
</summary>

On the [GitHub page for this repository](https://github.com/ndleah/python-mini-project), click on the Button "**Fork**".

![fork image](https://upload.wikimedia.org/wikipedia/commons/3/38/GitHub_Fork_Button.png)

</details>

---

<details>
<summary>
Step 3: Clone it
</summary>

- **Method 1:** GitHub Desktop

> ⚠️ **NOTE:** If you're not familiar with Git, using **GitHub Desktop Application** is a better start. If you choose this method, make sure to download it before continuing reading.
>
> ❗❗ Access link to download [**here**](https://desktop.github.com).

Learn more about how to clone the remote respository on your local machine using **GitHub Desktop** [here](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/adding-and-cloning-repositories/cloning-and-forking-repositories-from-github-desktop#cloning-a-repository).

- **Method 2:** Git

Clone the forked repository. Open git bash and type:

```bash
git clone https://github.com/<your-github-username>/python-mini-project.git
```

> This makes a local copy of the repository in your machine.
>
> ⚠️ **Replace \<your-github-username\>!**

Learn more about [forking](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) and [cloning a repo](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository).

</details>

---

<details>
<summary>
Step 4: Create your feature branch
</summary>

Always keep your local copy of the repository updated with the original repository.
Before making any changes and/or in an appropriate interval, follow the following steps:

- **Method 1:** GitHub Desktop

Learn more about how to create new branch [here](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/making-changes-in-a-branch/managing-branches#creating-a-branch) and how to fetch and pull origin from/to your local machine [here](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/keeping-your-local-repository-in-sync-with-github/syncing-your-branch).

Learn more about how to fetch and pull origin from/to your local machine using **GitHub Desktop** [here](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/keeping-your-local-repository-in-sync-with-github/syncing-your-branch).

- **Method 2:** Git

Run the following commands **_carefully_** to update your local repository

```sh
# If you cloned a while ago, get the latest changes from upstream
git checkout <master>
git pull upstream <master>

# Make a feature branch (Always check your current branch is up to date before creating a new branch from it to avoid merge conflicts)
git checkout -b <branch-name>

#
```

</details>

---

<details>
<summary>
Step 5: Ready, Set, Go...
</summary>

Once you have completed these steps, you are ready to start contributing to the project and creating **pull requests**.

- Create a folder in
[projects directory](https://github.com/ndleah/python-mini-project) according to your project name.
> The folder name should follow the following format "Your_Project_Name_Here". For example: Dice_Stimulator
- Write your code and add to the respective folder in the projects directory, locally.
- Don't forget to add a `README.md` in your folder, according to the
[README_TEMPLATE.](https://github.com/Python-World/python-mini-projects/blob/master/README_TEMPLATE.md)

* **Method 1:** GitHub Desktop

Learn more how to pull request from your local machine using **GitHub Desktop** to the main repo [here](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/viewing-a-pull-request-in-github-desktop).

- **Method 2:** Git

Add the changes with `git add`, `git commit`:

```bash
git add -A
git commit -m "<your message>"
```

Push the code _to your repository_.

```bash
git push origin <branch-name>
```

</details>

---

<details>
<summary>
Step 6: Pull Request
</summary>

Go to the GitHub page of _your fork_, and **make a pull request**:

![pull request image](https://i.ytimg.com/vi/rgbCcBNZcdQ/maxresdefault.jpg)

Read more about pull requests on the [GitHub help pages](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).

Now wait, until _your Pull Request_ is approved! If there are any conflicts, you will get a notification.

</details>

<br>

## ![image](IMG/bookmark.svg) README Template for scripts

please make sure to add a `README.md` file that follow the same construction as this template for consistency.

[README Template](https://github.com/ndleah/python-mini-project/blob/master/README_TEMPLATE.md)

## ![image](IMG/like.svg) Our Contributors

<a href="https://github.com/ndleah/python-mini-project/graphs/contributors">
<img src="https://contrib.rocks/image?repo=ndleah/python-mini-project" />
</a>

## ![image](IMG/muscle.svg) Feedback

If you have any feedback or ideas to improve this project, feel free to contact me via

<a href="https://www.linkedin.com/in/ndleah/">
<img align="left" alt="Reeha's Linkdein" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/linkedin.svg" />

</a>
<a href="https://github.com/ndleah">
<img align="left" alt="Reeha's Github" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/github.svg" />
</a>
<!--Please do not remove this part-->
![Star Badge](https://img.shields.io/static/v1?label=%F0%9F%8C%9F&message=If%20Useful&style=style=flat&color=BC4E99)
![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)

# World Rider



## 🛠️ Description

This a simple Dungeon exploring games which teaches if-else statments

## ⚙️ Languages or Frameworks Used
Python

## 🌟 How to run
Open the file WorldRider.py file with the python IDE and hit run.


## 🤖 Author
[Kartik Akhade](https://github.com/Kartikakhade)
66 changes: 66 additions & 0 deletions WorldRider.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name = input("Enter your name: ")
print(f"Hello {name}, and welcome! We are going to go on a Journey... are you ready?")

# --- THE ENTRANCE ---
i1 = input("\nYou have reached the gates of the Dark Dungeon. Do you want to enter? (yes/no): ").lower()

if i1 == "yes":
print("\nYou push the heavy iron gates open. They creak loudly, echoing into the abyss.")
print("The air is cold and damp, but you step forward with courage.")
else:
print("\nYou turn to run back to the safety of the woods...")
print("Suddenly, two giant trolls jump from the shadows, blocking your path!")
print("They laugh menacingly: 'Nobody leaves the Rider's path so easily!'")
print("They grab you by the collar and throw you deep into the dungeon entrance.")

print("\n--- THE JOURNEY BEGINS ---")
print("You find yourself in a flickering torch-lit hallway.")

# --- THE FORK IN THE ROAD ---
i2 = input("You reach two paths. Do you go Left toward a 'golden glow' or Right toward 'heavy breathing'? ").lower()

# PATH 1: THE RIGHT (The Troll/Stone of Strength)
if "right" in i2:
print("\nYou encounter a massive Troll blocking the path!")
i3 = input("Do you choose to 'walk away' quietly or 'fight' the troll? ").lower()

if i3 == "walk away":
print("You sneak away... but fall into a pit of wolves. Game Over!")
elif i3 == "fight":
print("You defeat the troll and obtain the 'Stone of Strength'!")
relic = "Stone of Strength"
else:
print("You hesitated... the troll smashes you. Game Over!")

# PATH 2: THE LEFT (The Temple/Amulet of Wisdom)
elif "left" in i2:
print("\nYou find a hidden underground temple.")
i4 = input("You see a golden chest. Do you 'open' it or 'ignore' it? ").lower()

if i4 == "open":
print("Light fills the room! You discover the 'Amulet of Wisdom'!")
relic = "Amulet of Wisdom"
elif i4 == "ignore":
print("The floor collapses. Game Over!")
else:
print("The spirits consume you. Game Over!")

else:
print("The walls close in while you hesitate. Game Over!")
relic = None

# --- EXPANDED STORY: THE MERCHANT OF SOULS ---
if 'relic' in locals() and relic:
print(f"\n--- NEW AREA: THE SILENT BAZAAR ---")
print(f"As you carry your {relic}, you meet a hooded Merchant sitting by a blue fire.")
print("Merchant: 'That is a fine prize. I can upgrade its power, but it will cost you your memories.'")

trade = input("Do you 'trade' part of your soul for more power, or 'keep' walking? ").lower()

if trade == "trade":
print(f"\nYour {relic} begins to glow with a dark, purple energy.")
print(f"You are now more powerful, but you have forgotten your name, {name[0]}... {name[0:2]}... ???")
print("You have become the Shadow Rider. To be continued...")
else:
print(f"\nYou keep your soul intact and find a secret exit behind the merchant.")
print(f"You emerge from the dungeon as {name}, the Hero of Light!")